summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-01-29 16:39:05 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-03-27 16:31:08 -0400
commit798df3387971abf6071de77ca82b8e7775e74809 (patch)
tree81c366b8778690cbb99e15eefadd32fd7e88978f /fs
parent4c69d5855a16f7378648c5733632628fa10431db (diff)
downloadtalos-obmc-linux-798df3387971abf6071de77ca82b8e7775e74809.tar.gz
talos-obmc-linux-798df3387971abf6071de77ca82b8e7775e74809.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 668bfe1fcdec..de7bc8f7c106 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -294,7 +294,7 @@ nfsd4_decode_fattr(struct nfsd4_compoundargs *argp, u32 *bmval,
READ32(nace);
if (nace > NFS4_ACL_MAX)
- return nfserr_resource;
+ return nfserr_fbig;
*acl = nfs4_acl_new(nace);
if (*acl == NULL)
OpenPOWER on IntegriCloud