-static unsigned int svcv4opinfo[42];/* NFSv4 call counts ([0] == 40) */
-static unsigned int svcnetinfo[5]; /* 0 # of received packets
+static unsigned int srvv4opinfo[42];/* NFSv4 call counts ([0] == 40) */
+static unsigned int srvnetinfo[5]; /* 0 # of received packets
"fsstat", "fsinfo", "pathconf", "commit"
};
"fsstat", "fsinfo", "pathconf", "commit"
};
"statfs", "readlink", "readdir", "server_caps", "delegreturn",
};
"statfs", "readlink", "readdir", "server_caps", "delegreturn",
};
"op0-unused", "op1-unused", "op2-future", "access", "close", "commit",
"create", "delegpurge", "delegreturn", "getattr", "getfh", "link",
"lock", "lockt", "locku", "lookup", "lookup_root", "nverify",
"op0-unused", "op1-unused", "op2-future", "access", "close", "commit",
"create", "delegpurge", "delegreturn", "getattr", "getfh", "link",
"lock", "lockt", "locku", "lookup", "lookup_root", "nverify",
-static statinfo svcinfo[] = {
- { "net", STRUCTSIZE(svcnetinfo), svcnetinfo },
- { "rpc", STRUCTSIZE(svcrpcinfo), svcrpcinfo },
- { "rc", STRUCTSIZE(svcrcinfo), svcrcinfo },
- { "fh", STRUCTSIZE(svcfhinfo), svcfhinfo },
- { "proc2", STRUCTSIZE(svcv2info), svcv2info },
- { "proc3", STRUCTSIZE(svcv3info), svcv3info },
- { "proc4", STRUCTSIZE(svcv4info), svcv4info },
- { "proc4ops", STRUCTSIZE(svcv4opinfo),svcv4opinfo},
+static statinfo srvinfo[] = {
+ { "net", STRUCTSIZE(srvnetinfo), srvnetinfo },
+ { "rpc", STRUCTSIZE(srvrpcinfo), srvrpcinfo },
+ { "rc", STRUCTSIZE(srvrcinfo), srvrcinfo },
+ { "fh", STRUCTSIZE(srvfhinfo), srvfhinfo },
+ { "proc2", STRUCTSIZE(srvv2info), srvv2info },
+ { "proc3", STRUCTSIZE(srvv3info), srvv3info },
+ { "proc4", STRUCTSIZE(srvv4info), srvv4info },
+ { "proc4ops", STRUCTSIZE(srvv4opinfo),srvv4opinfo},
static void get_stats(const char *, statinfo *, int *, int, const char *);
static int has_stats(const unsigned int *);
static void get_stats(const char *, statinfo *, int *, int, const char *);
static int has_stats(const unsigned int *);
- get_stats(NFSSVCSTAT, svcinfo, &opt_srv, opt_clt, "Server");
+ get_stats(NFSSRVSTAT, srvinfo, &opt_srv, opt_clt, "Server");
if (opt_clt)
get_stats(NFSCLTSTAT, cltinfo, &opt_clt, opt_srv, "Client");
if (opt_clt)
get_stats(NFSCLTSTAT, cltinfo, &opt_clt, opt_srv, "Client");
- if (get_stat_info("fh", svcinfo)) { /* >= 2.4 */
- int t = svcfhinfo[3];
- svcfhinfo[3]=svcfhinfo[4];
- svcfhinfo[4]=t;
+ if (get_stat_info("fh", srvinfo)) { /* >= 2.4 */
+ int t = srvfhinfo[3];
+ srvfhinfo[3]=srvfhinfo[4];
+ srvfhinfo[4]=t;
print_numbers(
"Server file handle cache:\n"
"lookup anon ncachedir ncachedir stale\n",
print_numbers(
"Server file handle cache:\n"
"lookup anon ncachedir ncachedir stale\n",
} else /* < 2.4 */
print_numbers(
"Server file handle cache:\n"
"lookup anon ncachedir ncachedir stale\n",
} else /* < 2.4 */
print_numbers(
"Server file handle cache:\n"
"lookup anon ncachedir ncachedir stale\n",