Skip to content

Commit cc6b03d

Browse files
committed
NFSv4: Clear NFS_CAP_OPEN_XOR and NFS_CAP_DELEGTIME if not supported
JIRA: https://issues.redhat.com/browse/RHEL-108616 commit b3ac334 Author: Trond Myklebust <trond.myklebust@hammerspace.com> Date: Fri Aug 29 09:12:30 2025 -0700 NFSv4: Clear NFS_CAP_OPEN_XOR and NFS_CAP_DELEGTIME if not supported _nfs4_server_capabilities() should clear capabilities that are not supported by the server. Fixes: d2a00cc ("NFSv4: Detect support for OPEN4_SHARE_ACCESS_WANT_OPEN_XOR_DELEGATION") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
1 parent 398550d commit cc6b03d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3985,7 +3985,8 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
39853985
memcpy(server->attr_bitmask, res.attr_bitmask, sizeof(server->attr_bitmask));
39863986
server->caps &=
39873987
~(NFS_CAP_ACLS | NFS_CAP_HARDLINKS | NFS_CAP_SYMLINKS |
3988-
NFS_CAP_SECURITY_LABEL | NFS_CAP_FS_LOCATIONS);
3988+
NFS_CAP_SECURITY_LABEL | NFS_CAP_FS_LOCATIONS |
3989+
NFS_CAP_OPEN_XOR | NFS_CAP_DELEGTIME);
39893990
server->fattr_valid = NFS_ATTR_FATTR_V4;
39903991
if (res.attr_bitmask[0] & FATTR4_WORD0_ACL &&
39913992
res.acl_bitmask & ACL4_SUPPORT_ALLOW_ACL)

0 commit comments

Comments
 (0)