Commit 4d4832ed authored by Scott Mayhew's avatar Scott Mayhew Committed by Anna Schumaker
Browse files

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: cb78f9b7 ("nfs: fix the fetch of FATTR4_OPEN_ARGUMENTS")
Signed-off-by: default avatarScott Mayhew <smayhew@redhat.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org # 6.11+
Signed-off-by: default avatarAnna Schumaker <anna.schumaker@oracle.com>
parent 243fea13
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3976,8 +3976,9 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
		     FATTR4_WORD0_CASE_INSENSITIVE |
		     FATTR4_WORD0_CASE_PRESERVING;
	if (minorversion)
		bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT |
			     FATTR4_WORD2_OPEN_ARGUMENTS;
		bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT;
	if (minorversion > 1)
		bitmask[2] |= FATTR4_WORD2_OPEN_ARGUMENTS;

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