From: Neil Brown Date: Fri, 16 Mar 2007 02:56:25 +0000 (+1100) Subject: Further tidyup of nfs_umount. X-Git-Tag: nfs-utils-1-1-0-rc1~71 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=1e42be20a3283994d0ffd6c5f80c36fab5a887a8;hp=1e42be20a3283994d0ffd6c5f80c36fab5a887a8 Further tidyup of nfs_umount. - remove non-used arguments from del_mtab. - Don't try to pass a "host:/path" string to umount. It used to be possible to umount("/dev/whatever"). It has never been possible to umount("host:/path"). - Don't try to read /proc/mounts first. Some mount options (mount_vers) are only stored in /etc/mtab, not in /proc/mounts. So we have to prefer /etc/mtab as getmntXbackwards do. - Only every call one of getmnt{dir,dev}backwards, depending on whether 'spec' looks like a path name or a host:/path. - Don't call _nfsumount unless we have a host:/path, or del_mtab unless we have a path name. ---