]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/mount/network.c
Fix version fallback for unmount.
authorNeil Brown <neilb@suse.de>
Thu, 11 Oct 2007 23:03:06 +0000 (09:03 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 11 Oct 2007 23:03:06 +0000 (09:03 +1000)
commitea4a03e77794eb2d46756c2d44f334f6ca4d13d7
tree977f8574fe1d9974ee789cba7416d2a23184b04e
parentdf0a06a985a15f088d0a7fb39c61a98e6aac9830
Fix version fallback for unmount.

Previously, if the mtab record didn't mention a version, unmount
would assume a v3 umount and send an UNMOUNT request accordingly.
This is wrong.

So remove the 'v3' assumption, and allow probe_port to continue when
it gets a version number mis-match.

Also there was some overloading of the meaning of pm_vers==0 relating
to v4 mounts.  As do_nfs_umount is never called for v4, rename it to
do_nfs_umount23, and remove v4 handling from there and from
nfs_call_umount.

Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/network.c
utils/mount/nfsumount.c