X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fnfsstat%2Fnfsstat.c;h=d2cca8d9fda85b8d4b6284fad12dbabb4814e02a;hp=828119b724d17a440fbe5ddb013dff2b76314a35;hb=d03090be4f440d70328988e9f792f3bd0ebd956b;hpb=3779638fd686d951afbf5d3e9ff025614fea7748 diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index 828119b..d2cca8d 100644 --- a/utils/nfsstat/nfsstat.c +++ b/utils/nfsstat/nfsstat.c @@ -207,7 +207,7 @@ void usage(char *name) { printf("Usage: %s [OPTION]...\n\ \n\ - -m, --mounted\t\tShow statistics on mounted NFS filesystems\n\ + -m, --mounts\t\tShow statistics on mounted NFS filesystems\n\ -c, --client\t\tShow NFS client statistics\n\ -s, --server\t\tShow NFS server statistics\n\ -2\t\t\tShow NFS version 2 statistics\n\ @@ -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' }, @@ -716,7 +716,7 @@ mounts(const char *name) if (!(type = strtok(NULL, " \t"))) continue; - if (strcmp(type, "nfs")) { + if (strcmp(type, "nfs") && strcmp(type,"nfs4")) { continue; }