Skip to contentSkip to conversation

rpcdebug: Add missing debug flags

PATCH In review Steve Dickson 2 participants 4 messages Oct 19, 2011 – Oct 20, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpcdebug: Add missing debug flags

This patch added the following debug flags:

fscache - enable FSCache debugging
pnfs - enable general pNFS debugging
pnfs_ld - enable file layout pNFS debugging

---
 support/include/nfs/debug.h |    3 +++
 tools/rpcdebug/rpcdebug.c   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
support/include/nfs/debug.h +3 -0
index d391e91..dbec5ba 100644
@@ -76,6 +76,9 @@ enum {
 #define NFSDBG_CALLBACK		0x0100
 #define NFSDBG_CLIENT		0x0200
 #define NFSDBG_MOUNT		0x0400
+#define NFSDBG_FSCACHE		0x0800
+#define NFSDBG_PNFS			0x1000
+#define NFSDBG_PNFS_LD		0x2000
 #define NFSDBG_ALL		0xFFFF
 
 #endif /* _NFS_DEBUG_H */
tools/rpcdebug/rpcdebug.c +3 -0
index 275a491..444616d 100644
@@ -167,6 +167,9 @@ static struct flagmap {
 	FLAG(NFS,       CALLBACK),
 	FLAG(NFS,       CLIENT),
 	FLAG(NFS,       MOUNT),
+	FLAG(NFS,       FSCACHE),
+	FLAG(NFS,       PNFS),
+	FLAG(NFS,       PNFS_LD),
 	FLAG(NFS,	ALL),
 
 	/* nfsd */
Signature · 1 line
1.7.6.2
#1 lore raw
Quoted 5 lines · Steve Dickson

This patch added the following debug flags:

fscache - enable FSCache debugging
pnfs - enable general pNFS debugging
pnfs_ld - enable file layout pNFS debugging

"Any layout-driver debugging", not only files. We all use the same bit

Boaz

Quoted 36 lines
---
 support/include/nfs/debug.h |    3 +++
 tools/rpcdebug/rpcdebug.c   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
support/include/nfs/debug.h +3 -0
index d391e91..dbec5ba 100644
@@ -76,6 +76,9 @@ enum {
 #define NFSDBG_CALLBACK		0x0100
 #define NFSDBG_CLIENT		0x0200
 #define NFSDBG_MOUNT		0x0400
+#define NFSDBG_FSCACHE		0x0800
+#define NFSDBG_PNFS			0x1000
+#define NFSDBG_PNFS_LD		0x2000
 #define NFSDBG_ALL		0xFFFF
 
 #endif /* _NFS_DEBUG_H */
tools/rpcdebug/rpcdebug.c +3 -0
index 275a491..444616d 100644
@@ -167,6 +167,9 @@ static struct flagmap {
 	FLAG(NFS,       CALLBACK),
 	FLAG(NFS,       CLIENT),
 	FLAG(NFS,       MOUNT),
+	FLAG(NFS,       FSCACHE),
+	FLAG(NFS,       PNFS),
+	FLAG(NFS,       PNFS_LD),
 	FLAG(NFS,	ALL),
 
 	/* nfsd */
#2 lore raw
Quoted 8 lines · Boaz Harrosh
Quoted 5 lines · Steve Dickson

This patch added the following debug flags:

fscache - enable FSCache debugging
pnfs - enable general pNFS debugging
pnfs_ld - enable file layout pNFS debugging

"Any layout-driver debugging", not only files. We all use the same bit

Noted... thanks!

steved.

Quoted 40 lines

Boaz

Quoted 36 lines
---
 support/include/nfs/debug.h |    3 +++
 tools/rpcdebug/rpcdebug.c   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
support/include/nfs/debug.h +3 -0
index d391e91..dbec5ba 100644
@@ -76,6 +76,9 @@ enum {
 #define NFSDBG_CALLBACK		0x0100
 #define NFSDBG_CLIENT		0x0200
 #define NFSDBG_MOUNT		0x0400
+#define NFSDBG_FSCACHE		0x0800
+#define NFSDBG_PNFS			0x1000
+#define NFSDBG_PNFS_LD		0x2000
 #define NFSDBG_ALL		0xFFFF
 
 #endif /* _NFS_DEBUG_H */
tools/rpcdebug/rpcdebug.c +3 -0
index 275a491..444616d 100644
@@ -167,6 +167,9 @@ static struct flagmap {
 	FLAG(NFS,       CALLBACK),
 	FLAG(NFS,       CLIENT),
 	FLAG(NFS,       MOUNT),
+	FLAG(NFS,       FSCACHE),
+	FLAG(NFS,       PNFS),
+	FLAG(NFS,       PNFS_LD),
 	FLAG(NFS,	ALL),
 
 	/* nfsd */
#3 lore raw
In reply to Steve Dickson
Quoted 7 lines · Steve Dickson

This patch added the following debug flags:

fscache - enable FSCache debugging
pnfs - enable general pNFS debugging
pnfs_ld - enable file layout pNFS debugging

Committed...

steved.

Quoted 33 lines
---
 support/include/nfs/debug.h |    3 +++
 tools/rpcdebug/rpcdebug.c   |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)
support/include/nfs/debug.h +3 -0
index d391e91..dbec5ba 100644
@@ -76,6 +76,9 @@ enum {
 #define NFSDBG_CALLBACK		0x0100
 #define NFSDBG_CLIENT		0x0200
 #define NFSDBG_MOUNT		0x0400
+#define NFSDBG_FSCACHE		0x0800
+#define NFSDBG_PNFS			0x1000
+#define NFSDBG_PNFS_LD		0x2000
 #define NFSDBG_ALL		0xFFFF
 
 #endif /* _NFS_DEBUG_H */
tools/rpcdebug/rpcdebug.c +3 -0
index 275a491..444616d 100644
@@ -167,6 +167,9 @@ static struct flagmap {
 	FLAG(NFS,       CALLBACK),
 	FLAG(NFS,       CLIENT),
 	FLAG(NFS,       MOUNT),
+	FLAG(NFS,       FSCACHE),
+	FLAG(NFS,       PNFS),
+	FLAG(NFS,       PNFS_LD),
 	FLAG(NFS,	ALL),
 
 	/* nfsd */