Skip to content

Commit cb78f9b

Browse files
jtlaytonamschuma-ntap
authored andcommitted
nfs: fix the fetch of FATTR4_OPEN_ARGUMENTS
The client doesn't properly request FATTR4_OPEN_ARGUMENTS in the initial SERVER_CAPS getattr. Add FATTR4_WORD2_OPEN_ARGUMENTS to the initial request. Fixes: 707f13b (NFSv4: Add support for the FATTR4_OPEN_ARGUMENTS attribute) Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: Benjamin Coddington <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent dc0112e commit cb78f9b

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
@@ -3931,7 +3931,8 @@ static int _nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *f
39313931
FATTR4_WORD0_CASE_INSENSITIVE |
39323932
FATTR4_WORD0_CASE_PRESERVING;
39333933
if (minorversion)
3934-
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT;
3934+
bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT |
3935+
FATTR4_WORD2_OPEN_ARGUMENTS;
39353936

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

0 commit comments

Comments
 (0)