Skip to contentSkip to conversation

nfs-utils: Set all verbose types in gssd daemons.

PATCH In review Steve Dickson 1 participant 2 messages Jun 5, 2009 – Jun 22, 2009 1 message not in the archive

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

PATCH 1/1 nfs-utils: Set all verbose types in gssd daemons.

I founded it very handy to have library verbosity enabled when verbosity is enabled on either the gssd or svcgssd daemons.

So this patch will set the verbosity level in the librpcsecgss library and in the libnfsidmapd (for svcgssd) when verbosity level is set by the '-v' flag it on either daemon.

----------------------------------------------

utils/gssd/gssd.c +2 -0
index f6949db..40a2b4d 100644
@@ -171,6 +171,8 @@ main(int argc, char *argv[])
 
 	initerr(progname, verbosity, fg);
 #ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL
+	if (verbosity && rpc_verbosity == 0)
+		rpc_verbosity = verbosity;
 	authgss_set_debug_level(rpc_verbosity);
 #else
         if (rpc_verbosity > 0)
utils/gssd/svcgssd.c +4 -0
index 6ca0e8d..69d2a69 100644
@@ -208,6 +208,8 @@ main(int argc, char *argv[])
 
 	initerr(progname, verbosity, fg);
 #ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL
+	if (verbosity && rpc_verbosity == 0)
+		rpc_verbosity = verbosity;
 	authgss_set_debug_level(rpc_verbosity);
 #else
 	if (rpc_verbosity > 0)
@@ -215,6 +217,8 @@ main(int argc, char *argv[])
 			    "support setting debug level\n");
 #endif
 #ifdef HAVE_NFS4_SET_DEBUG
+		if (verbosity && idmap_verbosity == 0)
+			idmap_verbosity = verbosity;
         nfs4_set_debug(idmap_verbosity, NULL);
 #else
 	if (idmap_verbosity > 0)
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Steve Dickson

I founded it very handy to have library verbosity enabled when verbosity is enabled on either the gssd or svcgssd daemons.

Quoted 8 lines

So this patch will set the verbosity level in the librpcsecgss library and in the libnfsidmapd (for svcgssd) when verbosity level is set by the '-v' flag it on either daemon.

----------------------------------------------

Committed...

steved.