Commit 798df3387971abf6071de77ca82b8e7775e74809

Authored by J. Bruce Fields
1 parent 4c69d5855a

nfsd4: make set of large acl return efbig, not resource

If a client attempts to set an excessively large ACL, return
NFS4ERR_FBIG instead of NFS4ERR_RESOURCE.  I'm not sure FBIG is correct,
but I'm positive RESOURCE is wrong (it isn't even a well-defined error
any more for NFS versions since 4.1).

Signed-off-by: J. Bruce Fields <bfields@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -294,7 +294,7 @@
294 294 READ32(nace);
295 295  
296 296 if (nace > NFS4_ACL_MAX)
297   - return nfserr_resource;
  297 + return nfserr_fbig;
298 298  
299 299 *acl = nfs4_acl_new(nace);
300 300 if (*acl == NULL)