Skip to content

Commit 4fb2b67

Browse files
author
Trond Myklebust
committed
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>
1 parent b3ac334 commit 4fb2b67

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/nfs/client.c

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

889889
if (fsinfo->xattr_support)
890890
server->caps |= NFS_CAP_XATTR;
891+
else
892+
server->caps &= ~NFS_CAP_XATTR;
891893
#endif
892894
}
893895

0 commit comments

Comments
 (0)