]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsumount.c
Don't do_nfs_umount() for NFSv4 unmounts
[nfs-utils.git] / utils / mount / nfsumount.c
index e7f37efe90639a231cde438e3ff304c9bf9990ae..8902f0088a0533abdd3a0d64a06ac938d4231d86 100644 (file)
@@ -348,7 +348,7 @@ int nfsumount(int argc, char *argv[])
 
        ret = 0;
        if (mc) {
-               if (!lazy)
+               if (!lazy && strcmp(mc->m.mnt_type, "nfs4") != 0)
                        ret = do_nfs_umount(mc->m.mnt_fsname, mc->m.mnt_opts);
                if (!ret || force)
                        ret = del_mtab(mc->m.mnt_fsname, mc->m.mnt_dir);