]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: fix error return when pseudoroot missing
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 27 Sep 2009 18:41:43 +0000 (14:41 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 28 Sep 2009 16:21:26 +0000 (12:21 -0400)
commitda28278a62e4dc0bb2448ceb9690ec34e192b880
tree17708324bb82f3fb4db2e9902dbcc9de03cbc1ff
parent346e7bba4f6cd9f690364fb78da3e65d78cac423
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>
fs/nfsd/export.c
fs/nfsd/nfsproc.c