umount.nfs: ignore non-nfs filesystems
authorKarel Zak <kzak@redhat.com>
Wed, 1 Aug 2012 15:14:21 +0000 (11:14 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 1 Aug 2012 15:14:21 +0000 (11:14 -0400)
commit808fd6bc68e00a686f8eed7e31f682a9128bdf9b
tree923d44a70f587257f67e0393d2e479a5b482e98c
parent4dac21d1e8ff31c3b01f7f29e7cf877e89f09eaa
umount.nfs: ignore non-nfs filesystems

 # umount.nfs /boot; echo $?
  umount.nfs: /boot: device is busy
  32

expected and fixed behavior:

 # umount.nfs /boot; echo $?
 # umount.nfs: /boot: is not an NFS filesystem
 1

Note that the function mnt_context_set_fstype_pattern() has never
been used for mtab/fstab evaluation. It's usable only for "umount -a"
and for "mount -t" operations.

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