Skip to contentSkip to conversation

Fix nfsstat --mounted

PATCH New Peng Haitao 1 participant 1 message Feb 22, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix nfsstat --mounted

Execute command "nfsstat --mounted" will print the error message "nfsstat: unrecognized option `--mounted'".

Package: nfs-utils
Version: 1.1.1

Index: nfs-utils-1.1.1/utils/nfsstat/nfsstat.c
===================================================================
diff -Nurp nfs-utils-1.1.1.orig/utils/nfsstat/nfsstat.c nfs-utils-1.1.1/utils/nfsstat/nfsstat.c
--- nfs-utils-1.1.1.orig/utils/nfsstat/nfsstat.c 2008-02-19
17:34:14.000000000 +0800
+++ nfs-utils-1.1.1/utils/nfsstat/nfsstat.c 2008-02-19
17:48:52.000000000 +0800
@@ -237,7 +237,7 @@ static struct option longopts[] =
{ "all", 0, 0, 'v' },
{ "auto", 0, 0, '\3' },
{ "client", 0, 0, 'c' },
- { "mounts", 0, 0, 'm' },
+ { "mounted", 0, 0, 'm' },
{ "nfs", 0, 0, 'n' },
{ "rpc", 0, 0, 'r' },
{ "server", 0, 0, 's' },

Signature · 13 lines
Regards
Peng Haitao
--------------------------------------------------
Peng Haitao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
8/F., Civil Defense Building, No.189 Guangzhou Road,
Nanjing, 210029, China
TEL: +86+25-86630566-837
COINS: 79955-837
FAX: +86+25-83317685
MAIL: [email protected]
--------------------------------------------------
utils/nfsstat/nfsstat.c +1 -1
diff -Nurp nfs-utils-1.1.1.orig/utils/nfsstat/nfsstat.c nfs-utils-1.1.1/utils/nfsstat/nfsstat.c
@@ -237,7 +237,7 @@ static struct option longopts[] =
 	{ "all", 0, 0, 'v' },
 	{ "auto", 0, 0, '\3' },
 	{ "client", 0, 0, 'c' },
-	{ "mounts", 0, 0, 'm' },
+	{ "mounted", 0, 0, 'm' },
 	{ "nfs", 0, 0, 'n' },
 	{ "rpc", 0, 0, 'r' },
 	{ "server", 0, 0, 's' },

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that [email protected] is being discontinued. Please subscribe to [email protected] instead.
http://vger.kernel.org/vger-lists.html#linux-nfs