diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-09-27 20:41:43 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-09-28 18:21:26 +0200 |
commit | f39bde24b275ddc45df1ed835725b609e178c7a0 (patch) | |
tree | 17708324bb82f3fb4db2e9902dbcc9de03cbc1ff /fs/nfsd/nfsproc.c | |
parent | nfsd: minor nfsd_lookup cleanup (diff) | |
download | linux-f39bde24b275ddc45df1ed835725b609e178c7a0.tar.xz linux-f39bde24b275ddc45df1ed835725b609e178c7a0.zip |
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) { nfserr_io, -ETXTBSY }, { nfserr_notsupp, -EOPNOTSUPP }, { nfserr_toosmall, -ETOOSMALL }, + { nfserr_serverfault, -ESERVERFAULT }, }; int i; |