From d03090be4f440d70328988e9f792f3bd0ebd956b Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 6 Jun 2008 15:17:55 -0400 Subject: [PATCH] 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 Signed-off-by: Steve Dickson --- utils/nfsstat/nfsstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5