diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-09-27 14:41:43 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-09-28 12:21:26 -0400 |
commit | f39bde24b275ddc45df1ed835725b609e178c7a0 (patch) | |
tree | 17708324bb82f3fb4db2e9902dbcc9de03cbc1ff /fs/nfsd/nfsproc.c | |
parent | 289ede453e5a621de19c61e630302b1845cc1d59 (diff) |
nfsd4: fix error return when pseudoroot missing
We really shouldn't hit this case at all, and forthcoming kernel and
nfs-utils changes should eliminate this case; if it does happen,
consider it a bug rather than reporting an error that doesn't really
make sense for the operation (since there's no reason for a server to be
accepting v4 traffic yet have no root filehandle).
Also move some exp_pseudoroot code into a helper function while we're
here.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r-- | fs/nfsd/nfsproc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 0eb9c820b7a6..c5393d1b8955 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -758,6 +758,7 @@ nfserrno (int errno) | |||
758 | { nfserr_io, -ETXTBSY }, | 758 | { nfserr_io, -ETXTBSY }, |
759 | { nfserr_notsupp, -EOPNOTSUPP }, | 759 | { nfserr_notsupp, -EOPNOTSUPP }, |
760 | { nfserr_toosmall, -ETOOSMALL }, | 760 | { nfserr_toosmall, -ETOOSMALL }, |
761 | { nfserr_serverfault, -ESERVERFAULT }, | ||
761 | }; | 762 | }; |
762 | int i; | 763 | int i; |
763 | 764 | ||