diff mbox

[11/16] libmultipath: show default configurations

Message ID 1386744190-1295-12-git-send-email-bmarzins@redhat.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Benjamin Marzinski Dec. 11, 2013, 6:43 a.m. UTC
"multipathd show config" should show the current configuration, even if
the current values match the default values.  Omitting the values when
they match the compiled in defaults just makes it harder for users to
see how multipath configured.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
---
 libmultipath/dict.c | 4 ----
 1 file changed, 4 deletions(-)
diff mbox

Patch

diff --git a/libmultipath/dict.c b/libmultipath/dict.c
index 0bf9587..9db4725 100644
--- a/libmultipath/dict.c
+++ b/libmultipath/dict.c
@@ -2459,16 +2459,12 @@  snprint_def_verbosity (char * buff, int len, void * data)
 static int
 snprint_def_max_polling_interval (char * buff, int len, void * data)
 {
-	if (conf->max_checkint == MAX_CHECKINT(conf->checkint))
-		return 0;
 	return snprintf(buff, len, "%i", conf->max_checkint);
 }
 
 static int
 snprint_reassign_maps (char * buff, int len, void * data)
 {
-	if (conf->reassign_maps == DEFAULT_REASSIGN_MAPS)
-		return 0;
 	return snprintf(buff, len, "\"%s\"",
 			conf->reassign_maps?"yes":"no");
 }