On Jun 5, 2008, at 1:00 AM, Neil Brown wrote:
That will, of course, report the "nfsd" mount as well, which we don't want. So let's try again. NeilBrown 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; }
Don't you want an OR? + if (strcmp(type, "nfs") || strcmp(type,"nfs4")) { Scott -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html