Skip to content

Commit 781ec30

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 b39234e commit 781ec30

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

874874
if (fsinfo->xattr_support)
875875
server->caps |= NFS_CAP_XATTR;
876+
else
877+
server->caps &= ~NFS_CAP_XATTR;
876878
#endif
877879
}
878880

0 commit comments

Comments
 (0)