diff options
| author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-08-29 19:15:12 +0300 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2025-08-29 19:56:43 +0300 |
| commit | 4fb2b677fc1f70ee642c0beecc3cabf226ef5707 (patch) | |
| tree | a3c47c4af4f1b077bd6051d3ec1d390c3a7a3140 | |
| parent | b3ac33436030bce37ecb3dcae581ecfaad28078c (diff) | |
| download | linux-4fb2b677fc1f70ee642c0beecc3cabf226ef5707.tar.xz | |
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: b78ef845c35d ("NFSv4.2: query the server for extended attribute support")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
| -rw-r--r-- | fs/nfs/client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 8fb4a950dd55..4e3dcc157a83 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -888,6 +888,8 @@ static void nfs_server_set_fsinfo(struct nfs_server *server, if (fsinfo->xattr_support) server->caps |= NFS_CAP_XATTR; + else + server->caps &= ~NFS_CAP_XATTR; #endif } |
