diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2010-02-04 17:03:53 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-02-04 17:04:33 -0500 |
commit | f808c94e8abb104e5248ee92acf6aeaf2e06e76a (patch) | |
tree | da12e3b350ed4a134fda2d4e39f6a5a67acbd40e /support/nfs/cacheio.c | |
parent | 6318d601cf182d2848d397af323ca9c4fbdecb97 (diff) | |
download | nfs-utils-f808c94e8abb104e5248ee92acf6aeaf2e06e76a.tar.gz nfs-utils-f808c94e8abb104e5248ee92acf6aeaf2e06e76a.tar.xz nfs-utils-f808c94e8abb104e5248ee92acf6aeaf2e06e76a.zip |
nfsd: fix version-setting regression on old kernels
/proc/fs/nfsd/versions was extended to allow turning on/off minor
versions by echoing "+4.1" or "-4.1" to /proc/fs/nsfd/versions.
Unfortunately, pre-2.6.30 kernels just stop parsing at first non-digit,
so "-4.1" is interpreted as "-4". If new nfs-utils (on old kernel)
writes "+2", "+3", "+4", then "-4.1", result therefore is to turn off
4.1.
Given that historical behavior, it may have been a mistake to extend the
interface the way we did; but at this point we're probably stuck with
it. So, just reverse the order we write versions in.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/cacheio.c')
0 files changed, 0 insertions, 0 deletions