Skip to content

Commit 526d747

Browse files
Trond Myklebustgregkh
authored andcommitted
NFSv4: Clear the NFS_CAP_XATTR flag if not supported by the server
[ Upstream commit 4fb2b67 ] 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: Sasha Levin <sashal@kernel.org>
1 parent 643cced commit 526d747

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
@@ -881,6 +881,8 @@ static void nfs_server_set_fsinfo(struct nfs_server *server,
881881

882882
if (fsinfo->xattr_support)
883883
server->caps |= NFS_CAP_XATTR;
884+
else
885+
server->caps &= ~NFS_CAP_XATTR;
884886
#endif
885887
}
886888

0 commit comments

Comments
 (0)