diff options
author | Neil Brown <neilb@suse.de> | 2008-06-06 15:17:55 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-06-06 15:17:55 -0400 |
commit | d03090be4f440d70328988e9f792f3bd0ebd956b (patch) | |
tree | 4d7b43190b6aa9c7d5915c5a2d9a72c6a397c101 | |
parent | 52dff26c60c07cf1b4fbf8fbd3a1eab7ba90405f (diff) | |
download | nfs-utils-d03090be4f440d70328988e9f792f3bd0ebd956b.tar.gz nfs-utils-d03090be4f440d70328988e9f792f3bd0ebd956b.tar.xz nfs-utils-d03090be4f440d70328988e9f792f3bd0ebd956b.zip |
nfsstat -m lists all current nfs mounts, with the mount options.
It does this by reading /proc/mounts and looking for mounts of type
"nfs". It really should check for "nfs4" as well.
For simplicity, just check the first 3 characters of the type.
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/nfsstat/nfsstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nfsstat/nfsstat.c b/utils/nfsstat/nfsstat.c index aa6c961..d2cca8d 100644 --- a/utils/nfsstat/nfsstat.c +++ b/utils/nfsstat/nfsstat.c @@ -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; } |