]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found