]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Don't do_nfs_umount() for NFSv4 unmounts
authorChuck Lever <chuck.lever@oracle.com>
Mon, 24 Sep 2007 15:29:36 +0000 (11:29 -0400)
committerNeil Brown <neilb@suse.de>
Tue, 25 Sep 2007 01:50:16 +0000 (11:50 +1000)
No need to talk to mountd when unmounting nfs4 filesystems.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
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);