Don't do_nfs_umount() for NFSv4 unmounts
Subsystems (2)
PATCH 14/14 Don't do_nfs_umount() for NFSv4 unmounts
No need to talk to mountd when unmounting nfs4 filesystems.
Signed-off-by Kevin Coffman <[email protected]>
Acked-by Chuck Lever <[email protected]>
---
utils/mount/nfsumount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
utils/mount/nfsumount.c +1 -1
@@ -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);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs