summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-06-19 10:34:20 -0400
committerSteve Dickson <steved@redhat.com>2012-06-19 10:37:31 -0400
commit55b1769e63cdffa07b597fa6132c9902cec25265 (patch)
tree80672e162417990153655c48724625bd8b5f77da
parenteae2fa997223ce0edb4218faf2ff67165535d21d (diff)
downloadnfs-utils-55b1769e63cdffa07b597fa6132c9902cec25265.tar.gz
nfs-utils-55b1769e63cdffa07b597fa6132c9902cec25265.tar.xz
nfs-utils-55b1769e63cdffa07b597fa6132c9902cec25265.zip
rpcdebug: Add new "state" flag for the nfs module
Kernel 3.5 adds a debugging flag for showing NFS client debugging messages having to do with NFSv4 state operations. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/include/nfs/debug.h1
-rw-r--r--tools/rpcdebug/rpcdebug.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/support/include/nfs/debug.h b/support/include/nfs/debug.h
index dbec5ba..80a1b1d 100644
--- a/support/include/nfs/debug.h
+++ b/support/include/nfs/debug.h
@@ -79,6 +79,7 @@ enum {
#define NFSDBG_FSCACHE 0x0800
#define NFSDBG_PNFS 0x1000
#define NFSDBG_PNFS_LD 0x2000
+#define NFSDBG_STATE 0x4000
#define NFSDBG_ALL 0xFFFF
#endif /* _NFS_DEBUG_H */
diff --git a/tools/rpcdebug/rpcdebug.c b/tools/rpcdebug/rpcdebug.c
index 444616d..d6e10d3 100644
--- a/tools/rpcdebug/rpcdebug.c
+++ b/tools/rpcdebug/rpcdebug.c
@@ -170,6 +170,7 @@ static struct flagmap {
FLAG(NFS, FSCACHE),
FLAG(NFS, PNFS),
FLAG(NFS, PNFS_LD),
+ FLAG(NFS, STATE),
FLAG(NFS, ALL),
/* nfsd */