Skip to content

Commit aab930d

Browse files
committed
NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server
JIRA: https://issues.redhat.com/browse/RHEL-108616 commit 4fb2b67 Author: Trond Myklebust <trond.myklebust@hammerspace.com> Date: Fri Aug 29 09:15:12 2025 -0700 NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server nfs_server_set_fsinfo() shouldn't assume that NFS_CAP_XATTR is unset on entry to the function. Fixes: b78ef84 ("NFSv4.2: query the server for extended attribute support") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
1 parent cc6b03d commit aab930d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ static void nfs_server_set_fsinfo(struct nfs_server *server,
869869

870870
if (fsinfo->xattr_support)
871871
server->caps |= NFS_CAP_XATTR;
872+
else
873+
server->caps &= ~NFS_CAP_XATTR;
872874
#endif
873875
}
874876

0 commit comments

Comments
 (0)