[dm-devel] [PATCH] multipath-tools: replace hardcoded USER_FRIENDLY_NAMES_OFF by default

Christophe Varoqui christophe.varoqui at opensvc.com
Wed Oct 19 06:08:04 UTC 2016


Merged.

On Tue, Oct 18, 2016 at 7:03 PM, Benjamin Marzinski <bmarzins at redhat.com>
wrote:

> On Tue, Oct 18, 2016 at 03:22:45PM +0200, Xose Vazquez Perez wrote:
>
> ACK
>
> -Ben
>
> > Cc: Benjamin Marzinski <bmarzins at redhat.com>
> > Cc: Hannes Reinecke <hare at suse.de>
> > Cc: Christophe Varoqui <christophe.varoqui at opensvc.com>
> > Cc: device-mapper development <dm-devel at redhat.com>
> > Signed-off-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
> > ---
> >  libmultipath/defaults.h | 1 +
> >  libmultipath/propsel.c  | 2 +-
> >  2 files changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
> > index d00a86f..e9581a6 100644
> > --- a/libmultipath/defaults.h
> > +++ b/libmultipath/defaults.h
> > @@ -32,6 +32,7 @@
> >  #define DEFAULT_PRIO_ARGS    ""
> >  #define DEFAULT_CHECKER              TUR
> >  #define DEFAULT_FLUSH                FLUSH_DISABLED
> > +#define DEFAULT_USER_FRIENDLY_NAMES USER_FRIENDLY_NAMES_OFF
> >
> >  #define DEFAULT_CHECKINT     5
> >  #define MAX_CHECKINT(a)              (a << 2)
> > diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
> > index 88a1916..aaf99fb 100644
> > --- a/libmultipath/propsel.c
> > +++ b/libmultipath/propsel.c
> > @@ -228,7 +228,7 @@ want_user_friendly_names(struct config *conf,
> struct multipath * mp)
> >              "(controller setting)");
> >       do_set(user_friendly_names, conf, user_friendly_names,
> >              "(config file setting)");
> > -     do_default(user_friendly_names, USER_FRIENDLY_NAMES_OFF);
> > +     do_default(user_friendly_names, DEFAULT_USER_FRIENDLY_NAMES);
> >  out:
> >       condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,
> >               (user_friendly_names == USER_FRIENDLY_NAMES_ON)? "yes" :
> "no",
> > --
> > 2.10.1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20161019/edb2bfad/attachment.htm>


More information about the dm-devel mailing list