{"id":2228068,"url":"http://patchwork.ozlabs.org/api/patches/2228068/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260424-case-sensitivity-v11-10-de5619beddaf@oracle.com/","project":{"id":12,"url":"http://patchwork.ozlabs.org/api/projects/12/?format=json","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":"<20260424-case-sensitivity-v11-10-de5619beddaf@oracle.com>","list_archive_url":null,"date":"2026-04-25T01:53:12","name":"[v11,10/15] nfs: Implement fileattr_get for case sensitivity","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"02ac89e43105f05c39445cd89568df62deb319f4","submitter":{"id":86689,"url":"http://patchwork.ozlabs.org/api/people/86689/?format=json","name":"Chuck Lever","email":"cel@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260424-case-sensitivity-v11-10-de5619beddaf@oracle.com/mbox/","series":[{"id":501416,"url":"http://patchwork.ozlabs.org/api/series/501416/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501416","date":"2026-04-25T01:53:02","name":"Exposing case folding behavior","version":11,"mbox":"http://patchwork.ozlabs.org/series/501416/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228068/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228068/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-cifs+bounces-11100-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=uj48QbHc;\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-11100-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=\"uj48QbHc\"","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 4g2XxT3tHwz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 11:56:29 +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 0D44E3060DBA\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 01:54:13 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 642B025C80E;\n\tSat, 25 Apr 2026 01:53:49 +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 3EFAB199FAB;\n\tSat, 25 Apr 2026 01:53:49 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id A68B5C2BCB6;\n\tSat, 25 Apr 2026 01:53:46 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777082029; cv=none;\n b=CqEVHCldDt2x6rigLBK/GR68Iui3o5+qlc4IjRCPKs+n2uYq+EE8db76OZ+bvlrbAhFbI4DfcYqOYWlO3Op4myoeQZl4FTnM6FCJyOkimy0zFaXIqaVI44BxPlhoHa6qg1I9kUc/etD/hOTiHOlSneYuH3RPZtSCY0Vpiqz3Kao=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777082029; c=relaxed/simple;\n\tbh=QZehk7hgpP2WY10BVAiXNiQemi89Ng/OyF16c1lCHtQ=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=d21eWseo0l96+MzqPyckYdAWTwJc4f8gSDeOI/DiBD4QdJhxhlPInaNWyP8OdrVpgFCEjffVWlAKxcjJ114empRu0GlZFb0smihFTXIVOYS20jmt1eSkOBNaLpWANDlfBpN0YWHv1j6bSh+ZLMIAnG+NNiIhKHflqtZZtB7pedU=","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=uj48QbHc; 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=1777082028;\n\tbh=QZehk7hgpP2WY10BVAiXNiQemi89Ng/OyF16c1lCHtQ=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:From;\n\tb=uj48QbHcwL7k1FsJFEF53cmfogqLyr7S7uZS49ZDp4MKVBLkfjrfcW9W3zVu6+0S6\n\t RDfgy0cBRjsAx9Ex2fkOo6XcOwPhKvPA1L1OEZ+v5V/OcdyGvy0rOUMkdcEAeIDNvb\n\t li0IMKNh4HY7/+cZv/Q5kDCZ4LpB/+pjlyzeR9EQxAfgI09wU0/1DrVRiRrRF0mQlg\n\t +JrSeTR+j5VRF07eusmhb063zYR1Lrk4UEoH/GtoX24RDFlvXUabWtlLR2AzCWQyet\n\t bLUWoTmfbi0Ulisq2wTwu5REGz6z7OqYmW1j0k/Upk694a3kLqqR1BB6eW0sSOjgyD\n\t TQuEBTCR4VhUg==","From":"Chuck Lever <cel@kernel.org>","Date":"Fri, 24 Apr 2026 21:53:12 -0400","Subject":"[PATCH v11 10/15] 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":"<20260424-case-sensitivity-v11-10-de5619beddaf@oracle.com>","References":"<20260424-case-sensitivity-v11-0-de5619beddaf@oracle.com>","In-Reply-To":"<20260424-case-sensitivity-v11-0-de5619beddaf@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>,\n Roland Mainz <roland.mainz@nrubsig.org>","X-Mailer":"b4 0.16-dev","X-Developer-Signature":"v=1; a=openpgp-sha256; l=10613;\n i=chuck.lever@oracle.com; h=from:subject:message-id;\n bh=BOmjSAGcyrzSRx0hHpBKVOO+kXklILNBJobYIqPVz+8=;\n b=kA0DAAoBM2qzM29mf5cByyZiAGnsHpCim7JsR5mb1IlAJFJToK85oWXxgewN+r3OBEsPvesBD\n IkCMwQAAQoAHRYhBCiy5bASht8kPPI+/jNqszNvZn+XBQJp7B6QAAoJEDNqszNvZn+XePwP/3i3\n +o6fNvcqHmUEvvIXwUTbZ5uUzspAY46wg33xIUcYcWK85qQ88YPDDGN0w4+hgidHv8VbKtQ1C0P\n 8TMSMCqwxRPHSo7QpXTRZFZcT5UPgLL2O4s2PkRhSvip0y0XNxIuZ3+HuuvJhuBFtNK423dOgJQ\n SVxXWVj+ejqN0Nsgc5sxUrE7wxEV2p7RbeeyzvoJ167+R6qiaPTnKcMcuvnMpq2h8IleLvkMVyQ\n qghTcC5mkyGK+NkeUV23lENGaxqxYrIszYSn5rGrUJV25jlvEfXhakLtZj2hEGGQcJ1LWk2fDla\n d9wGWNRpiJV4Ek7G2NC5H/+qbMBOZmGk+Bc4hWN9JZAOKVh9DOfVmrqi6PrJ7alUdA2XkA3BTj3\n OKjoDIvJlo5Py5R6ISOZ6x14zBRx7rrmjngNhvfQR8eHJklcrcB0OdeiDPU8lCeVHIRZ5HEqLMg\n 5EADVoBokVRimT+zk31o/4Iq/WZHafqmx99Cm7uPqVY+jl0u1Indjy2tNzQ73zV7nPNxdr7qlSt\n 4jr8Q8+CE5LPHVKQWaIqbmNs/wg+egMpGbsdIrcZpAnrVT4GhLSFoChJKcdG+VJhbjmgia3YDc7\n 2+2sCNbqSAayG/8AFBBYTYge5/f+AZp6MZVFU6IJsA9uVQyERWw3mbZfOsnThEiVpElmSia7OFp\n uz/YG","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\nits clients. NFSD's attribute encoder obtains that information\nby calling vfs_fileattr_get() on the lower filesystem, so the\nNFS client must implement fileattr_get to surface what it\nlearned from its own server.\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\nReviewed-by: Roland Mainz <roland.mainz@nrubsig.org>\nSigned-off-by: Chuck Lever <chuck.lever@oracle.com>\n---\n fs/nfs/client.c           | 22 +++++++++++++++++-----\n fs/nfs/inode.c            | 23 +++++++++++++++++++++++\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, 64 insertions(+), 10 deletions(-)","diff":"diff --git a/fs/nfs/client.c b/fs/nfs/client.c\nindex be02bb227741..2f4d41ecfa71 100644\n--- a/fs/nfs/client.c\n+++ b/fs/nfs/client.c\n@@ -933,15 +933,27 @@ 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\t/*\n+\t\t\t * NFSv4 PATHCONF does not carry the case-sensitivity\n+\t\t\t * fields; those caps are set from FATTR4_CASE_*\n+\t\t\t * attributes during the set_capabilities probe.\n+\t\t\t */\n+\t\t\tif (clp->rpc_ops->version < 4) {\n+\t\t\t\tif (pathinfo.case_insensitive)\n+\t\t\t\t\tserver->caps |= NFS_CAP_CASE_INSENSITIVE;\n+\t\t\t\tif (!pathinfo.case_preserving)\n+\t\t\t\t\tserver->caps |= NFS_CAP_CASE_NONPRESERVING;\n+\t\t\t}\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..bce2466552c4 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,28 @@ 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+\t\tfa->flags |= FS_CASEFOLD_FL;\n+\t}\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":["v11","10/15"]}