Message ID | 1386744190-1295-12-git-send-email-bmarzins@redhat.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
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"); }
"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(-)