Skip to contentSkip to conversation

nfsstat: update client op to match latest kernel

PATCH Superseded Peng Tao 2 participants 3 messages Feb 12, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Peng Tao

author
#0 lore raw

PATCH 1/1 nfsstat: update client op to match latest kernel

We've added a bunch of ops and removed getdevicelist.

---
 utils/nfsstat/nfsstat.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
utils/nfsstat/nfsstat.c +8 -3
index 9f481db..de57109 100644
@@ -31,7 +31,7 @@ enum {
 	SRVPROC3_SZ = 22,
 	CLTPROC3_SZ = 22,
 	SRVPROC4_SZ = 2,
-	CLTPROC4_SZ = 49,
+	CLTPROC4_SZ = 55,
 	SRVPROC4OPS_SZ = 59,
 };
 
@@ -127,7 +127,7 @@ static const char *	nfscltproc4name[CLTPROC4_SZ] = {
 	"remove",    "rename",    "link",    "symlink",     "create",      "pathconf",
 	"statfs",    "readlink",  "readdir", "server_caps", "delegreturn", "getacl",
 	"setacl",    "fs_locations",
-	"rel_lkowner", "secinfo",
+	"rel_lkowner", "secinfo", "fsid_present",
 	/* nfsv4.1 client ops */
 	"exchange_id",
 	"create_ses",
@@ -139,7 +139,12 @@ static const char *	nfscltproc4name[CLTPROC4_SZ] = {
 	"getdevinfo",
 	"layoutcommit",
 	"layoutreturn",
-	"getdevlist",
+	"secinfo_no_n",
+	"test_stateid",
+	"free_stateid",
+	"bind_con_ses",
+	"destroy_clid",
+	"seek",
 };
 
 static const char *     nfssrvproc4opname[SRVPROC4OPS_SZ] = {
Signature · 1 line
1.9.1
author
#1 lore raw

sorry, forgot to cc Steve...

Cheers,
Tao

Quoted 46 lines · Peng Tao

We've added a bunch of ops and removed getdevicelist.

---
 utils/nfsstat/nfsstat.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
utils/nfsstat/nfsstat.c +8 -4
index 9f481db..de57109 100644
@@ -31,7 +31,7 @@ enum {
        SRVPROC3_SZ = 22,
        CLTPROC3_SZ = 22,
        SRVPROC4_SZ = 2,
-       CLTPROC4_SZ = 49,
+       CLTPROC4_SZ = 55,
        SRVPROC4OPS_SZ = 59,
 };
 
@@ -127,7 +127,7 @@ static const char * nfscltproc4name[CLTPROC4_SZ] = {
        "remove",    "rename",    "link",    "symlink",     "create",      "pathconf",
        "statfs",    "readlink",  "readdir", "server_caps", "delegreturn", "getacl",
        "setacl",    "fs_locations",
-       "rel_lkowner", "secinfo",
+       "rel_lkowner", "secinfo", "fsid_present",
        /* nfsv4.1 client ops */
        "exchange_id",
        "create_ses",
@@ -139,7 +139,12 @@ static const char *        nfscltproc4name[CLTPROC4_SZ] = {
        "getdevinfo",
        "layoutcommit",
        "layoutreturn",
-       "getdevlist",
+       "secinfo_no_n",
+       "test_stateid",
+       "free_stateid",
+       "bind_con_ses",
+       "destroy_clid",
+       "seek",
 };
 
 static const char *     nfssrvproc4opname[SRVPROC4OPS_SZ] = {
--

1.9.1

#2 lore raw
In reply to Peng Tao

Hi Tao,

Quoted 30 lines · Peng Tao

We've added a bunch of ops and removed getdevicelist.

---
 utils/nfsstat/nfsstat.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
utils/nfsstat/nfsstat.c +2 -2
index 9f481db..de57109 100644
@@ -31,7 +31,7 @@ enum {
 	SRVPROC3_SZ = 22,
 	CLTPROC3_SZ = 22,
 	SRVPROC4_SZ = 2,
-	CLTPROC4_SZ = 49,
+	CLTPROC4_SZ = 55,
 	SRVPROC4OPS_SZ = 59,
 };
 
@@ -127,7 +127,7 @@ static const char *	nfscltproc4name[CLTPROC4_SZ] = {
 	"remove",    "rename",    "link",    "symlink",     "create",      "pathconf",
 	"statfs",    "readlink",  "readdir", "server_caps", "delegreturn", "getacl",
 	"setacl",    "fs_locations",
-	"rel_lkowner", "secinfo",
+	"rel_lkowner", "secinfo", "fsid_present",
 	/* nfsv4.1 client ops */
 	"exchange_id",
 	"create_ses",

utils/nfsstat/nfsstat.c static const char * nfscltproc4name[CLTPROC4_SZ] = { · line 147

Quoted 10 lines
utils/nfsstat/nfsstat.c +6 -1
@@ -139,7 +139,12 @@ static const char *	nfscltproc4name[CLTPROC4_SZ] = {
 	"getdevinfo",
 	"layoutcommit",
 	"layoutreturn",
-	"getdevlist",
+	"secinfo_no_n",
+	"test_stateid",
+	"free_stateid",
+	"bind_con_ses",
+	"destroy_clid",
+	"seek",

Can you add ALLOCATE and DEALLOCATE while you're at it?

Thanks,
Anna

Quoted 4 lines
utils/nfsstat/nfsstat.c +0 -0
 };
 
 static const char *     nfssrvproc4opname[SRVPROC4OPS_SZ] = {