From: Sebastian Herbszt <herbszt@gmx.de>
To: device-mapper development <dm-devel@redhat.com>
Cc: Sebastian Herbszt <herbszt@gmx.de>
Subject: Re: [PATCH 3/6] libmultipath: add overrides section to multipath.conf
Date: Mon, 12 Jan 2015 00:15:25 +0100 [thread overview]
Message-ID: <20150112001525.0000473f@localhost> (raw)
In-Reply-To: <CABr-GndVm5ct_E7UoF86no5b36k8MpLU4KD5pYtO=h1NiT4LGQ@mail.gmail.com>
Christophe Varoqui wrote:
> I have no strong opinion on this one : I feel like the complexity of the
> parameter inheritance system is already quite complicated ... but this
> addition of a new layer would likely and safely be ignored by users who
> don't need it. Those who need it are surely ready to pay the price.
>
> Does someone have objection to my applying this patch ?
>
> Best regards,
> Christophe
>
>
>
> On Wed, Nov 19, 2014 at 7:17 AM, Benjamin Marzinski <bmarzins@redhat.com>
> wrote:
>
> > Sometimes users want to be able to set a configuration value for all their
> > devices (for instance, they may want all devices to set no_path_retry to
> > fail). The builtin device configurations make this tricky, since users need
> > to change each device configuration individually. To avoid that, this patch
> > adds a new section to multipath.conf, "overrides". This section has all of
> > the attributes that are in both the devices and defaults section.
> > Attributes set in the overrides section have a higher priority that those
> > in the devices section. With this section added, the multipath
> > configuration order now goes:
> >
> > multipaths > overrides > devices > defaults
> >
> > I also made want_user_friendly_names print out where the configuration came
> > from, and I made made select_hwhandler and select_selector always strdup
> > the string, instead of only on the defaults. Since multipathd will update
> > the device strings from the kernel anyway, the old way just added
> > complexity without saving any memory.
> >
> > To store the overrides configuration, I used a hwentry structure. We may
> > want to make a new overrides structure, so that we set any of the defaults
> > values in overrides. That way, users could skip using defaults and just
> > use overrides if they wanted. However, this would take some additional
> > changes to make sure that all the defaults options can undefined, which
> > they can't currently be.
> >
What's the current precedence of the configuration sections? I don't think
the manual pages document this (sufficiently). I guess the precedence is:
multipaths > devices > defaults
But where do the built-in device configurations fit in? It seems those are
somehow merged with the user supplied entries from the configuration file.
Would changing the precedence to
multipaths > devices > defaults > built-in devices
fix the issue at hand?
Sebastian
next prev parent reply other threads:[~2015-01-11 23:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 6:17 [PATCH 0/6][RESEND] configuration overhaul and find_multipaths Benjamin Marzinski
2014-11-19 6:17 ` [PATCH 1/6] libmultipath: rewrite dict.c with function generation macros Benjamin Marzinski
2014-11-19 6:17 ` [PATCH 2/6] libmultipath: cleanup propsel.c with macros for common actions Benjamin Marzinski
2014-11-19 6:17 ` [PATCH 3/6] libmultipath: add overrides section to multipath.conf Benjamin Marzinski
2015-01-08 23:06 ` Christophe Varoqui
2015-01-11 23:15 ` Sebastian Herbszt [this message]
2015-01-11 23:37 ` Christophe Varoqui
2015-01-13 0:01 ` Sebastian Herbszt
2015-01-13 15:56 ` Marian Csontos
2015-01-13 17:08 ` Benjamin Marzinski
2015-01-12 18:05 ` Benjamin Marzinski
2015-01-12 20:27 ` Christophe Varoqui
2014-11-19 6:17 ` [PATCH 4/6] add find_multipaths option Benjamin Marzinski
2014-11-19 6:17 ` [PATCH 5/6] correctly set partition delimiter on rename Benjamin Marzinski
2015-01-08 22:51 ` Christophe Varoqui
2014-11-19 6:17 ` [PATCH 6/6] libmultipath: only add uninitialized paths in check_path Benjamin Marzinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150112001525.0000473f@localhost \
--to=herbszt@gmx.de \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.