Skip to content

Commit 4d4832e

Browse files
scottmayhewAnna Schumaker
authored andcommitted
NFSv4: Don't check for OPEN feature support in v4.1
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]>
1 parent 243fea1 commit 4d4832e

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
@@ -3976,8 +3976,9 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
39763976
FATTR4_WORD0_CASE_INSENSITIVE |
39773977
FATTR4_WORD0_CASE_PRESERVING;
39783978
if (minorversion)
3979-
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT |
3980-
FATTR4_WORD2_OPEN_ARGUMENTS;
3979+
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT;
3980+
if (minorversion > 1)
3981+
bitmask[2] |= FATTR4_WORD2_OPEN_ARGUMENTS;
39813982

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

0 commit comments

Comments
 (0)