Skip to content

Commit 8fb1e01

Browse files
committed
NFSv4: Don't check for OPEN feature support in v4.1
jira LE-3519 Rebuild_History Non-Buildable kernel-5.14.0-570.25.1.el9_6 commit-author Scott Mayhew <[email protected]> commit 4d4832e fattr4_open_arguments is a v4.2 recommended attribute, so we shouldn't be sending it to v4.1 servers. Fixes: cb78f9b ("nfs: fix the fetch of FATTR4_OPEN_ARGUMENTS") Signed-off-by: Scott Mayhew <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Benjamin Coddington <[email protected]> Cc: [email protected] # 6.11+ Signed-off-by: Anna Schumaker <[email protected]> (cherry picked from commit 4d4832e) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 8a1a728 commit 8fb1e01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3949,8 +3949,9 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
39493949
FATTR4_WORD0_CASE_INSENSITIVE |
39503950
FATTR4_WORD0_CASE_PRESERVING;
39513951
if (minorversion)
3952-
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT |
3953-
FATTR4_WORD2_OPEN_ARGUMENTS;
3952+
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT;
3953+
if (minorversion > 1)
3954+
bitmask[2] |= FATTR4_WORD2_OPEN_ARGUMENTS;
39543955

39553956
status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
39563957
if (status == 0) {

0 commit comments

Comments
 (0)