Skip to content

Commit 65ae073

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 330934d commit 65ae073

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

860860
if (fsinfo->xattr_support)
861861
server->caps |= NFS_CAP_XATTR;
862+
else
863+
server->caps &= ~NFS_CAP_XATTR;
862864
#endif
863865
}
864866

0 commit comments

Comments
 (0)