nfsd4: require version 4 when enabling or disabling minorversion
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jan 2013 23:25:01 +0000 (18:25 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jan 2013 23:25:01 +0000 (18:25 -0500)
commitff89be87c70247ffe3a72271e02eb7765cdd12c4
treed089d9e8fb4eae00fcbb41a4e6727267063a754c
parentbca0ec6511bb96bcb6cb247fd4100a4ea1d1e4f5
nfsd4: require version 4 when enabling or disabling minorversion

The current code will allow silly things like:

echo "+2 +3 +4 +7.1">/proc/fs/nfsd/versions

Reported-by: Fan Chaoting <fanchaoting@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsctl.c