]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: really fix nfs4err_resource in 4.1 case
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 8 May 2014 21:38:18 +0000 (17:38 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:32:13 +0000 (17:32 -0400)
commite05dce3391340114ee678e4635179076ccf1cd3f
treec8406d790712b2ebe2708c9c99a1a04ce8ff434d
parent2b2f82be32f8412261139dff4a35ba6dabcd4a95
nfsd4: really fix nfs4err_resource in 4.1 case

encode_getattr, for example, can return nfserr_resource to indicate it
ran out of buffer space.  That's not a legal error in the 4.1 case.
And in the 4.1 case, if we ran out of buffer space, we should have
exceeded a session limit too.

(Note in a708352718c76819237accf2e9c72c47dab0bce0 "nfsd4: fix
nfs4err_resource in 4.1 case" we originally tried fixing this error
return before fixing the problem that we could error out while we still
had lots of available space.  The result was to trade one illegal error
for another in those cases.  We decided that was helpful, so reverted
the change in a2f00a6590200c65db81b14a3661f28a6f42bf5e, and are only
reinstating it now that we've elimited almost all of those cases.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c