]> www.infradead.org Git - users/hch/xfs.git/commitdiff
nfs: fix the fetch of FATTR4_OPEN_ARGUMENTS
authorJeff Layton <jlayton@kernel.org>
Thu, 15 Aug 2024 14:18:41 +0000 (10:18 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Aug 2024 21:01:09 +0000 (17:01 -0400)
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: 707f13b3d081 (NFSv4: Add support for the FATTR4_OPEN_ARGUMENTS attribute)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c

index 8883016c551cec632d22e82f6bd7d4c4408b6c36..06df74362e947effed917e28adab272693947b39 100644 (file)
@@ -3931,7 +3931,8 @@ 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;
+               bitmask[2] = FATTR4_WORD2_SUPPATTR_EXCLCREAT |
+                            FATTR4_WORD2_OPEN_ARGUMENTS;
 
        status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0);
        if (status == 0) {