Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227335/?format=api
{ "id": 2227335, "url": "http://patchwork.ozlabs.org/api/patches/2227335/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-11-c385d674a6cf@oracle.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260423-case-sensitivity-v10-11-c385d674a6cf@oracle.com>", "list_archive_url": null, "date": "2026-04-23T13:12:14", "name": "[v10,11/17] nfs: Implement fileattr_get for case sensitivity", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f7ed162f52547be9c931912c5a5c88669c785e08", "submitter": { "id": 86689, "url": "http://patchwork.ozlabs.org/api/people/86689/?format=api", "name": "Chuck Lever", "email": "cel@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260423-case-sensitivity-v10-11-c385d674a6cf@oracle.com/mbox/", "series": [ { "id": 501195, "url": "http://patchwork.ozlabs.org/api/series/501195/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501195", "date": "2026-04-23T13:12:06", "name": "Exposing case folding behavior", "version": 10, "mbox": "http://patchwork.ozlabs.org/series/501195/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227335/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227335/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-11054-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=OS2jnHoc;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11054-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"OS2jnHoc\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1cDq12Mvz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 23:21:31 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 1EDE530E8495\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 13:13:25 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 152143EF674;\n\tThu, 23 Apr 2026 13:12:50 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id DEEBF3BE64B;\n\tThu, 23 Apr 2026 13:12:49 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 687EAC2BCB5;\n\tThu, 23 Apr 2026 13:12:47 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776949969; cv=none;\n b=BvVkQSauWJXb/yHVYGiGMiK1sLVsHpP4bROY86A++OCVrx0gn7EMNqo23ZX24d0hOeG9CQS1LHAT+ntnpm9F4NliPPQIfgpRff1//ItmwdWXsCA4KVv+URWfuVj5pZNLA2ROAsdF/tD7QTtmqVX1hOhGhTM3/iRc1DOMASBjyn4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776949969; c=relaxed/simple;\n\tbh=CBw6HJjihKt4szx3STHKU8UW82Ri/ir43Jvjht8LLFE=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=RfBz3fJMdynD19EcLOvpxAspG45VpqID6EC0BsepXjMQM+j2+qlb+QMKx3llX9hpz+1wgt8bpoEZRzu+Kh10+MilLB8jY9ng9HUp407SvVLs/hrSTMbZoQcCuYzjuJFzq1SyFaBGm7D8pktP+YDY0Zci6/s0xxT+wFFo8fOTTTQ=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=OS2jnHoc; arc=none smtp.client-ip=10.30.226.201", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776949969;\n\tbh=CBw6HJjihKt4szx3STHKU8UW82Ri/ir43Jvjht8LLFE=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=OS2jnHocPEm3AfaQ2tQzKl16QJBonggIjfsctDDjb/9vsPMd5h2w+NDAvAlC01hBT\n\t obwyWp/72dD/Hdy5Nvyx7ebmiPOZnJhSSHt3riPQ48u1bJV6D6q99L+TG6BRssEnhK\n\t t9IdR5ht+K5Dm+KwSiq7IkZoQAxqsnD82TGMAL/W9se3zRBkSbvIcKGka80MaQlM2b\n\t glENMEKmc42CbaQQoOhS0E/8T/20stIZ6zKRY4J6zcd9G4RZhIB2moPH8y25/gRoSe\n\t qJHpQX1eR30+vtEDzXwWSxbjBlrzhoJvZ2vNQxtPhSiE3kWb7+PCqcMqgT1uuS96Kj\n\t sbtN04n48VPIQ==", "From": "Chuck Lever <cel@kernel.org>", "Date": "Thu, 23 Apr 2026 09:12:14 -0400", "Subject": "[PATCH v10 11/17] nfs: Implement fileattr_get for case sensitivity", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260423-case-sensitivity-v10-11-c385d674a6cf@oracle.com>", "References": "<20260423-case-sensitivity-v10-0-c385d674a6cf@oracle.com>", "In-Reply-To": "<20260423-case-sensitivity-v10-0-c385d674a6cf@oracle.com>", "To": "Al Viro <viro@zeniv.linux.org.uk>,\n Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>", "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n linux-xfs@vger.kernel.org, linux-cifs@vger.kernel.org,\n linux-nfs@vger.kernel.org, linux-api@vger.kernel.org,\n linux-f2fs-devel@lists.sourceforge.net, hirofumi@mail.parknet.co.jp,\n linkinjeon@kernel.org, sj1557.seo@samsung.com, yuezhang.mo@sony.com,\n almaz.alexandrovich@paragon-software.com, slava@dubeyko.com,\n glaubitz@physik.fu-berlin.de, frank.li@vivo.com, tytso@mit.edu,\n adilger.kernel@dilger.ca, cem@kernel.org, sfrench@samba.org,\n pc@manguebit.org, ronniesahlberg@gmail.com, sprasad@microsoft.com,\n trondmy@kernel.org, anna@kernel.org, jaegeuk@kernel.org, chao@kernel.org,\n hansg@kernel.org, senozhatsky@chromium.org,\n Chuck Lever <chuck.lever@oracle.com>", "X-Mailer": "b4 0.16-dev", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=10268;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=sZZw+YCsjF4PsIWcIBUtG3seiYJnlhRbGqwWgLDQ1vI=;\n b=owEBbQKS/ZANAwAKATNqszNvZn+XAcsmYgBp6hq0au5oZDiaeJMTBdlYTbavVckNcLhHefE5N\n MrtpZG32cOJAjMEAAEKAB0WIQQosuWwEobfJDzyPv4zarMzb2Z/lwUCaeoatAAKCRAzarMzb2Z/\n l4l1D/4ni23JDJMV2Q9NHrfN0S100LgjzfTLIDGrblIT72n4CEt6jZzohAa3W1So/L2oB+U8Sqf\n bKThWRZMR+H7LqbmsGj2vneV+r8ipLV2F4evqW/hRCCdvtdzljvhOFVCCQKigxKBhUg+AXFF8g6\n a013LH9FcP4BWf2t0DRFkDxVwPWN5K4TRwSj+SzqTHY2n+DULUVG0HUPmB1S8kvpRXFwj93whgk\n MJWYRC3uNlYRO4yNv8HVo8ja8KyMnISxLPg+K8oxZeUl2rL79Z0txxKJDuSic5xvc37wktlIZ2o\n XK+7oB1xN+AhT3ZpRqi0QkB69OxZVKXQum4QHXPPDLTTOxX5kgD2PCZGN1i0ZFQofDqdcfd9fqZ\n rcG5g+CLgdILeZJKaLzJ3Yq704Bi+xCQRg/5q9eXPM7Q0jwREq3o1TvLOfxs8Hdv23Ekp+7uxQt\n /zQ0q5HmavJnQ06xdXuEc/Q0tR1d2Dt0fWRBzVwSQmrVVZPsNbhU7BtfaniwRqoPNmPR2sa+Wf/\n CNmD4Dq2HjThS3IPRP13Q9xq8Vqcw4Zxzapj3vUKrjGxbsekRcEkmDlgsR7dNPzI/tiG6TflDvF\n LM0hOv6aOCOJ2rbcnYZIVUTz/4lhUFcoWTIAasqF5ramfQejWH87qjwGVbS/Zta2s058qpAEQwq\n O/Qnll7vf5Ijtsg==", "X-Developer-Key": "i=chuck.lever@oracle.com; a=openpgp;\n fpr=28B2E5B01286DF243CF23EFE336AB3336F667F97" }, "content": "From: Chuck Lever <chuck.lever@oracle.com>\n\nAn NFS server re-exporting an NFS mount point needs to report\nthe case sensitivity behavior of the underlying filesystem to its\nclients. Without this, re-export servers cannot accurately convey\ncase handling semantics, potentially causing client applications to\nmake incorrect assumptions about filename collisions and lookups.\n\nThe NFS client already retrieves case sensitivity information\nfrom servers during mount via PATHCONF (NFSv3) or the\nFATTR4_CASE_INSENSITIVE/FATTR4_CASE_PRESERVING attributes\n(NFSv4). Expose this information through fileattr_get by\nreporting the FS_XFLAG_CASEFOLD and FS_XFLAG_CASENONPRESERVING\nflags. NFSv2 lacks PATHCONF support, so mounts using that protocol\nversion default to standard POSIX behavior: case-sensitive and\ncase-preserving.\n\nPATHCONF is now invoked unconditionally for NFSv2 and NFSv3 mounts\nso the case-sensitivity capabilities are established even when\nthe user pins server->namelen with the namlen= mount option. That\noption is orthogonal to case handling, and skipping PATHCONF\nbecause namelen was already known would leave the caps unset.\n\nThe two capability bits carry opposite polarity\nbecause their POSIX defaults differ. Most servers are\ncase-sensitive and case-preserving, matching \"neither\nxflag set.\" NFS_CAP_CASE_INSENSITIVE is set only when the\nserver affirms case insensitivity, so \"server said no\" and\n\"server did not answer\" both collapse to the case-sensitive\ndefault. NFS_CAP_CASE_NONPRESERVING follows the same pattern in\nthe opposite direction: set only when the server affirms that it\ndoes not preserve case, so that silence or a missing attribute\nlands on the case-preserving default. The NFSv4 probe checks\nres.attr_bitmask[0] to distinguish \"server said false\" from \"server\nomitted the attribute\" before setting the bit.\n\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/nfs/client.c | 15 ++++++++++-----\n fs/nfs/inode.c | 21 +++++++++++++++++++++\n fs/nfs/internal.h | 3 +++\n fs/nfs/nfs3proc.c | 2 ++\n fs/nfs/nfs3xdr.c | 7 +++++--\n fs/nfs/nfs4proc.c | 7 +++++--\n fs/nfs/proc.c | 3 +++\n fs/nfs/symlink.c | 3 +++\n include/linux/nfs_fs_sb.h | 2 +-\n include/linux/nfs_xdr.h | 2 ++\n 10 files changed, 55 insertions(+), 10 deletions(-)", "diff": "diff --git a/fs/nfs/client.c b/fs/nfs/client.c\nindex be02bb227741..5f351988e1fe 100644\n--- a/fs/nfs/client.c\n+++ b/fs/nfs/client.c\n@@ -933,15 +933,20 @@ static int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, str\n \n \tnfs_server_set_fsinfo(server, &fsinfo);\n \n-\t/* Get some general file system info */\n-\tif (server->namelen == 0) {\n-\t\tstruct nfs_pathconf pathinfo;\n+\t{\n+\t\tstruct nfs_pathconf pathinfo = { };\n \n \t\tpathinfo.fattr = fattr;\n \t\tnfs_fattr_init(fattr);\n \n-\t\tif (clp->rpc_ops->pathconf(server, mntfh, &pathinfo) >= 0)\n-\t\t\tserver->namelen = pathinfo.max_namelen;\n+\t\tif (clp->rpc_ops->pathconf(server, mntfh, &pathinfo) >= 0) {\n+\t\t\tif (server->namelen == 0)\n+\t\t\t\tserver->namelen = pathinfo.max_namelen;\n+\t\t\tif (pathinfo.case_insensitive)\n+\t\t\t\tserver->caps |= NFS_CAP_CASE_INSENSITIVE;\n+\t\t\tif (!pathinfo.case_preserving)\n+\t\t\t\tserver->caps |= NFS_CAP_CASE_NONPRESERVING;\n+\t\t}\n \t}\n \n \tif (clp->rpc_ops->discover_trunking != NULL &&\ndiff --git a/fs/nfs/inode.c b/fs/nfs/inode.c\nindex 98a8f0de1199..209929e54253 100644\n--- a/fs/nfs/inode.c\n+++ b/fs/nfs/inode.c\n@@ -41,6 +41,7 @@\n #include <linux/freezer.h>\n #include <linux/uaccess.h>\n #include <linux/iversion.h>\n+#include <linux/fileattr.h>\n \n #include \"nfs4_fs.h\"\n #include \"callback.h\"\n@@ -1101,6 +1102,26 @@ int nfs_getattr(struct mnt_idmap *idmap, const struct path *path,\n }\n EXPORT_SYMBOL_GPL(nfs_getattr);\n \n+int nfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa)\n+{\n+\tstruct inode *inode = d_inode(dentry);\n+\n+\t/*\n+\t * Case handling is a property of the exported filesystem on the\n+\t * NFS server, reported to the client at mount via PATHCONF\n+\t * (NFSv3) or FATTR4_CASE_INSENSITIVE / FATTR4_CASE_PRESERVING\n+\t * (NFSv4). Unlike filesystems that always preserve case, an NFS\n+\t * mount may front a backend that does not, so both flags can\n+\t * appear.\n+\t */\n+\tif (nfs_server_capable(inode, NFS_CAP_CASE_INSENSITIVE))\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASEFOLD;\n+\tif (nfs_server_capable(inode, NFS_CAP_CASE_NONPRESERVING))\n+\t\tfa->fsx_xflags |= FS_XFLAG_CASENONPRESERVING;\n+\treturn 0;\n+}\n+EXPORT_SYMBOL_GPL(nfs_fileattr_get);\n+\n static void nfs_init_lock_context(struct nfs_lock_context *l_ctx)\n {\n \trefcount_set(&l_ctx->count, 1);\ndiff --git a/fs/nfs/internal.h b/fs/nfs/internal.h\nindex fc5456377160..309d3f679bb3 100644\n--- a/fs/nfs/internal.h\n+++ b/fs/nfs/internal.h\n@@ -449,6 +449,9 @@ extern void nfs_set_cache_invalid(struct inode *inode, unsigned long flags);\n extern bool nfs_check_cache_invalid(struct inode *, unsigned long);\n extern int nfs_wait_bit_killable(struct wait_bit_key *key, int mode);\n \n+struct file_kattr;\n+int nfs_fileattr_get(struct dentry *dentry, struct file_kattr *fa);\n+\n #if IS_ENABLED(CONFIG_NFS_LOCALIO)\n /* localio.c */\n struct nfs_local_dio {\ndiff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c\nindex 95d7cd564b74..b80d0c5efc27 100644\n--- a/fs/nfs/nfs3proc.c\n+++ b/fs/nfs/nfs3proc.c\n@@ -1053,6 +1053,7 @@ static const struct inode_operations nfs3_dir_inode_operations = {\n \t.permission\t= nfs_permission,\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n #ifdef CONFIG_NFS_V3_ACL\n \t.listxattr\t= nfs3_listxattr,\n \t.get_inode_acl\t= nfs3_get_acl,\n@@ -1064,6 +1065,7 @@ static const struct inode_operations nfs3_file_inode_operations = {\n \t.permission\t= nfs_permission,\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n #ifdef CONFIG_NFS_V3_ACL\n \t.listxattr\t= nfs3_listxattr,\n \t.get_inode_acl\t= nfs3_get_acl,\ndiff --git a/fs/nfs/nfs3xdr.c b/fs/nfs/nfs3xdr.c\nindex e17d72908412..e745e78faab0 100644\n--- a/fs/nfs/nfs3xdr.c\n+++ b/fs/nfs/nfs3xdr.c\n@@ -2276,8 +2276,11 @@ static int decode_pathconf3resok(struct xdr_stream *xdr,\n \tif (unlikely(!p))\n \t\treturn -EIO;\n \tresult->max_link = be32_to_cpup(p++);\n-\tresult->max_namelen = be32_to_cpup(p);\n-\t/* ignore remaining fields */\n+\tresult->max_namelen = be32_to_cpup(p++);\n+\tp++;\t/* ignore no_trunc */\n+\tp++;\t/* ignore chown_restricted */\n+\tresult->case_insensitive = be32_to_cpup(p++) != 0;\n+\tresult->case_preserving = be32_to_cpup(p) != 0;\n \treturn 0;\n }\n \ndiff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c\nindex d839a97df822..034e3e87e863 100644\n--- a/fs/nfs/nfs4proc.c\n+++ b/fs/nfs/nfs4proc.c\n@@ -3944,8 +3944,9 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f\n \t\t\tserver->caps |= NFS_CAP_SYMLINKS;\n \t\tif (res.case_insensitive)\n \t\t\tserver->caps |= NFS_CAP_CASE_INSENSITIVE;\n-\t\tif (res.case_preserving)\n-\t\t\tserver->caps |= NFS_CAP_CASE_PRESERVING;\n+\t\tif ((res.attr_bitmask[0] & FATTR4_WORD0_CASE_PRESERVING) &&\n+\t\t !res.case_preserving)\n+\t\t\tserver->caps |= NFS_CAP_CASE_NONPRESERVING;\n #ifdef CONFIG_NFS_V4_SECURITY_LABEL\n \t\tif (res.attr_bitmask[2] & FATTR4_WORD2_SECURITY_LABEL)\n \t\t\tserver->caps |= NFS_CAP_SECURITY_LABEL;\n@@ -10598,6 +10599,7 @@ static const struct inode_operations nfs4_dir_inode_operations = {\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n \t.listxattr\t= nfs4_listxattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n };\n \n static const struct inode_operations nfs4_file_inode_operations = {\n@@ -10605,6 +10607,7 @@ static const struct inode_operations nfs4_file_inode_operations = {\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n \t.listxattr\t= nfs4_listxattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n };\n \n static struct nfs_server *nfs4_clone_server(struct nfs_server *source,\ndiff --git a/fs/nfs/proc.c b/fs/nfs/proc.c\nindex 70795684b8e8..03c2c1f31be9 100644\n--- a/fs/nfs/proc.c\n+++ b/fs/nfs/proc.c\n@@ -598,6 +598,7 @@ nfs_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle,\n {\n \tinfo->max_link = 0;\n \tinfo->max_namelen = NFS2_MAXNAMLEN;\n+\tinfo->case_preserving = true;\n \treturn 0;\n }\n \n@@ -718,12 +719,14 @@ static const struct inode_operations nfs_dir_inode_operations = {\n \t.permission\t= nfs_permission,\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n };\n \n static const struct inode_operations nfs_file_inode_operations = {\n \t.permission\t= nfs_permission,\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n };\n \n const struct nfs_rpc_ops nfs_v2_clientops = {\ndiff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c\nindex 58146e935402..74a072896f8d 100644\n--- a/fs/nfs/symlink.c\n+++ b/fs/nfs/symlink.c\n@@ -22,6 +22,8 @@\n #include <linux/mm.h>\n #include <linux/string.h>\n \n+#include \"internal.h\"\n+\n /* Symlink caching in the page cache is even more simplistic\n * and straight-forward than readdir caching.\n */\n@@ -74,4 +76,5 @@ const struct inode_operations nfs_symlink_inode_operations = {\n \t.get_link\t= nfs_get_link,\n \t.getattr\t= nfs_getattr,\n \t.setattr\t= nfs_setattr,\n+\t.fileattr_get\t= nfs_fileattr_get,\n };\ndiff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h\nindex 4daee27fa5eb..34d294774f8c 100644\n--- a/include/linux/nfs_fs_sb.h\n+++ b/include/linux/nfs_fs_sb.h\n@@ -306,7 +306,7 @@ struct nfs_server {\n #define NFS_CAP_ATOMIC_OPEN\t(1U << 4)\n #define NFS_CAP_LGOPEN\t\t(1U << 5)\n #define NFS_CAP_CASE_INSENSITIVE\t(1U << 6)\n-#define NFS_CAP_CASE_PRESERVING\t(1U << 7)\n+#define NFS_CAP_CASE_NONPRESERVING\t(1U << 7)\n #define NFS_CAP_REBOOT_LAYOUTRETURN\t(1U << 8)\n #define NFS_CAP_OFFLOAD_STATUS\t(1U << 9)\n #define NFS_CAP_ZERO_RANGE\t(1U << 10)\ndiff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h\nindex ff1f12aa73d2..7c2057e40f99 100644\n--- a/include/linux/nfs_xdr.h\n+++ b/include/linux/nfs_xdr.h\n@@ -182,6 +182,8 @@ struct nfs_pathconf {\n \tstruct nfs_fattr\t*fattr; /* Post-op attributes */\n \t__u32\t\t\tmax_link; /* max # of hard links */\n \t__u32\t\t\tmax_namelen; /* max name length */\n+\tbool\t\t\tcase_insensitive;\n+\tbool\t\t\tcase_preserving;\n };\n \n struct nfs4_change_info {\n", "prefixes": [ "v10", "11/17" ] }