]> git.decadent.org.uk Git - nfs-utils.git/commit
Use correct UMNT protocol to do umount
authorWei Yongjun <yjwei@nanjing-fnst.com>
Wed, 14 Mar 2007 07:56:58 +0000 (15:56 +0800)
committerNeil Brown <neilb@suse.de>
Fri, 16 Mar 2007 01:33:14 +0000 (12:33 +1100)
commit0a2950956d05f8069cd698e28479cbf14a3bba86
treedf7c98f1f83f3a07ac97f58c9ffbd01561920164
parent6501bd27df2c723ff0e18ee58e9434287acf3539
Use correct UMNT protocol to do umount

This patch do following things:

1. When unmounting, we should try /proc/mounts first. Only then in
   /etc/mtab if it wasn't found.
2. Reject name passed to us which is not starts with a '/' or not
   contains a ':'
3. Fix the method to get UMNT protocol

Signed-off-by: Wei Yongjun <yjwei@nanjing-fnst.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/nfsumount.c