summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-03-20 16:16:04 +1100
committerNeil Brown <neilb@suse.de>2007-03-20 16:16:04 +1100
commit742190194badb6f08a4934c254d642cbf014c84e (patch)
tree9445e50151eb5af55155f661364f32a39123b693
parent6facb22402a0bd8cd49be2ed1a0856b24fef42f4 (diff)
downloadnfs-utils-742190194badb6f08a4934c254d642cbf014c84e.tar.gz
nfs-utils-742190194badb6f08a4934c254d642cbf014c84e.tar.xz
nfs-utils-742190194badb6f08a4934c254d642cbf014c84e.zip
umount should succeed even if we cannot contact the server.
Failure to tell mountd about the unmount should not be classes and an error and DEFINTELY should not stop the filesystem from being unmounted.
-rw-r--r--utils/mount/nfsumount.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c
index e65f58f..b9737be 100644
--- a/utils/mount/nfsumount.c
+++ b/utils/mount/nfsumount.c
@@ -375,12 +375,11 @@ int nfsumount(int argc, char *argv[])
ret = 0;
if (mc) {
if (!lazy)
- ret = _nfsumount(mc->m.mnt_fsname, mc->m.mnt_opts);
- if(ret)
- ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir);
+ _nfsumount(mc->m.mnt_fsname, mc->m.mnt_opts);
+ ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir);
} else if (*spec != '/') {
if (!lazy)
- ret = _nfsumount(spec, "tcp,v3");
+ _nfsumount(spec, "tcp,v3");
} else
ret = del_mtab(NULL, spec);