]> git.decadent.org.uk Git - nfs-utils.git/commit
umount: use correct return value for is_vers4.
authorNeilBrown <neilb@suse.de>
Mon, 6 Aug 2012 12:41:13 +0000 (08:41 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 6 Aug 2012 13:11:27 +0000 (09:11 -0400)
commitb0b342201140530c5b9e00408f12d22258df7c4e
tree83e9871410de40f375b41935c2cf5663e25881b7
parent808fd6bc68e00a686f8eed7e31f682a9128bdf9b
umount: use correct return value for is_vers4.

is_vers4 in mount_libmount.c is based on nfs_umount_is_vers4
in nfsumount.c, except the return values are reversed.
The result of this is:
 - a MOUNT_UMNT call is not sent when an NFSv3 or NFSv2
   filesystem is unmounted
 - a MOUNT_UMNT call *is* sent when and 'nfs4' filesystem
   is unmounted (but not when an 'nfs -o vers=4 filesystem
   is unmounted, as that is checked elsewhere).

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount_libmount.c