From: Pavel Emelyanov Date: Fri, 14 May 2010 11:33:36 +0000 (+0400) Subject: NFSD: don't report compiled-out versions as present X-Git-Tag: v2.6.35-rc1~489^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ddb4aec54422ead137b03ea4e9b3f5db3f7cc2;p=pandora-kernel.git 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 Cc: stable@kernel.org Acked-by: NeilBrown Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed