From 97fed3061fd5c742ebd1f685e3e6dcb62e835b74 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Mon, 24 Sep 2007 11:29:36 -0400 Subject: [PATCH] Don't do_nfs_umount() for NFSv4 unmounts No need to talk to mountd when unmounting nfs4 filesystems. Signed-off-by: Kevin Coffman Acked-by: Chuck Lever Signed-off-by: Neil Brown --- utils/mount/nfsumount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index e7f37ef..8902f00 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -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); -- 2.39.2