]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Augment nfs4 stats to cover new nfs41 client and
authorBenny Halevy <bhalevy@panasas.com>
Sun, 16 Aug 2009 20:39:07 +0000 (16:39 -0400)
committerSteve Dickson <steved@redhat.com>
Sun, 16 Aug 2009 20:39:07 +0000 (16:39 -0400)
server operations' stats.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsstat/nfsstat.c

index 7e9f3273da68ef374ee57c8049441d6bec18da78..fa46d5d26516021a07273a1ebf13d9e0a5be8a5b 100644 (file)
@@ -30,8 +30,8 @@ static unsigned int   cltproc2info[20], cltproc2info_old[20]; /* NFSv2 call counts
 static unsigned int    srvproc3info[24], srvproc3info_old[24]; /* NFSv3 call counts ([0] == 22) */
 static unsigned int    cltproc3info[24], cltproc3info_old[24]; /* NFSv3 call counts ([0] == 22) */
 static unsigned int    srvproc4info[4], srvproc4info_old[4];   /* NFSv4 call counts ([0] == 2) */
 static unsigned int    srvproc3info[24], srvproc3info_old[24]; /* NFSv3 call counts ([0] == 22) */
 static unsigned int    cltproc3info[24], cltproc3info_old[24]; /* NFSv3 call counts ([0] == 22) */
 static unsigned int    srvproc4info[4], srvproc4info_old[4];   /* NFSv4 call counts ([0] == 2) */
-static unsigned int    cltproc4info[37], cltproc4info_old[37]; /* NFSv4 call counts ([0] == 35) */
-static unsigned int    srvproc4opsinfo[42], srvproc4opsinfo_old[42];   /* NFSv4 call counts ([0] == 40) */
+static unsigned int    cltproc4info[49], cltproc4info_old[49]; /* NFSv4 call counts ([0] == 35) */
+static unsigned int    srvproc4opsinfo[61], srvproc4opsinfo_old[61];   /* NFSv4 call counts ([0] == 40) */
 static unsigned int    srvnetinfo[5], srvnetinfo_old[5];       /* 0  # of received packets
                                                                 * 1  UDP packets
                                                                 * 2  TCP packets
 static unsigned int    srvnetinfo[5], srvnetinfo_old[5];       /* 0  # of received packets
                                                                 * 1  UDP packets
                                                                 * 2  TCP packets
@@ -93,24 +93,58 @@ static const char * nfssrvproc4name[2] = {
        "compound",
 };
 
        "compound",
 };
 
-static const char *    nfscltproc4name[35] = {
+static const char *    nfscltproc4name[47] = {
        "null",      "read",      "write",   "commit",      "open",        "open_conf",
        "open_noat", "open_dgrd", "close",   "setattr",     "fsinfo",      "renew",
        "setclntid", "confirm",   "lock",
        "lockt",     "locku",     "access",  "getattr",     "lookup",      "lookup_root",
        "remove",    "rename",    "link",    "symlink",     "create",      "pathconf",
        "statfs",    "readlink",  "readdir", "server_caps", "delegreturn", "getacl",
        "null",      "read",      "write",   "commit",      "open",        "open_conf",
        "open_noat", "open_dgrd", "close",   "setattr",     "fsinfo",      "renew",
        "setclntid", "confirm",   "lock",
        "lockt",     "locku",     "access",  "getattr",     "lookup",      "lookup_root",
        "remove",    "rename",    "link",    "symlink",     "create",      "pathconf",
        "statfs",    "readlink",  "readdir", "server_caps", "delegreturn", "getacl",
-       "setacl",    "fs_locations"
+       "setacl",    "fs_locations",
+       /* nfsv4.1 client ops */
+       "exchange_id",
+       "create_ses",
+       "destroy_ses",
+       "sequence",
+       "get_lease_t",
+       "layoutget",
+       "layoutcommit",
+       "layoutreturn",
+       "getdevlist",
+       "getdevinfo",
+       /* nfsv4.1 pnfs client ops to data server only */
+       "ds_write",
+       "ds_commit",
 };
 
 };
 
-static const char *     nfssrvproc4opname[40] = {
+static const char *     nfssrvproc4opname[59] = {
         "op0-unused",   "op1-unused", "op2-future",  "access",     "close",       "commit",
         "create",       "delegpurge", "delegreturn", "getattr",    "getfh",       "link",
         "lock",         "lockt",      "locku",       "lookup",     "lookup_root", "nverify",
         "open",         "openattr",   "open_conf",   "open_dgrd",  "putfh",       "putpubfh",
         "putrootfh",    "read",       "readdir",     "readlink",   "remove",      "rename",
         "renew",        "restorefh",  "savefh",      "secinfo",    "setattr",     "setcltid",
         "op0-unused",   "op1-unused", "op2-future",  "access",     "close",       "commit",
         "create",       "delegpurge", "delegreturn", "getattr",    "getfh",       "link",
         "lock",         "lockt",      "locku",       "lookup",     "lookup_root", "nverify",
         "open",         "openattr",   "open_conf",   "open_dgrd",  "putfh",       "putpubfh",
         "putrootfh",    "read",       "readdir",     "readlink",   "remove",      "rename",
         "renew",        "restorefh",  "savefh",      "secinfo",    "setattr",     "setcltid",
-        "setcltidconf", "verify",     "write",       "rellockowner"
+        "setcltidconf", "verify",     "write",       "rellockowner",
+       /* nfsv4.1 server ops */
+       "bc_ctl",
+       "bind_conn",
+       "exchange_id",
+       "create_ses",
+       "destroy_ses",
+       "free_stateid",
+       "getdirdeleg",
+       "getdevinfo",
+       "getdevlist",
+       "layoutcommit",
+       "layoutget",
+       "layoutreturn",
+       "secinfononam",
+       "sequence",
+       "set_ssv",
+       "test_stateid",
+       "want_deleg",
+       "destroy_clid",
+       "reclaim_comp",
 };
 
 #define LABEL_srvnet           "Server packet stats:\n"
 };
 
 #define LABEL_srvnet           "Server packet stats:\n"