diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2010-05-14 13:33:36 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-05-15 00:46:14 +0200 |
commit | 15ddb4aec54422ead137b03ea4e9b3f5db3f7cc2 (patch) | |
tree | 7553c06ca7ba059d30289bb8f2e09753671220de /fs/readdir.c | |
parent | nfsd4: implement reclaim_complete (diff) | |
download | linux-15ddb4aec54422ead137b03ea4e9b3f5db3f7cc2.tar.xz linux-15ddb4aec54422ead137b03ea4e9b3f5db3f7cc2.zip |
NFSD: don't report compiled-out versions as present
The /proc/fs/nfsd/versions file calls nfsd_vers() to check whether
the particular nfsd version is present/available. The problem is
that once I turn off e.g. NFSD-V4 this call returns -1 which is
true from the callers POV which is wrong.
The proposal is to report false in that case.
The bug has existed since 6658d3a7bbfd1768 "[PATCH] knfsd: remove
nfsd_versbits as intermediate storage for desired versions".
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: stable@kernel.org
Acked-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions