[dm-devel] [PATCH 11/16] libmultipath: show default configurations
Benjamin Marzinski
bmarzins at redhat.com
Wed Dec 11 06:43:05 UTC 2013
"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 at redhat.com>
---
libmultipath/dict.c | 4 ----
1 file changed, 4 deletions(-)
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");
}
--
1.8.4.2
More information about the dm-devel
mailing list