<div dir="ltr">Ben,<div><br></div><div>I have no complaints about this patch iteration, and acknowledged the need for some users. As nobody voiced against it, I will apply the patch.</div><div><br></div><div>Thanks,</div><div>Christophe Varoqui</div><div>OpenSVC</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 12, 2015 at 7:05 PM, Benjamin Marzinski <span dir="ltr"><<a href="mailto:bmarzins@redhat.com" target="_blank">bmarzins@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jan 09, 2015 at 12:06:29AM +0100, Christophe Varoqui wrote:<br>
> I have no strong opinion on this one : I feel like the complexity of the<br>
> parameter inheritance system is already quite complicated ... but this<br>
> addition of a new layer would likely and safely be ignored by users who<br>
> don't need it. Those who need it are surely ready to pay the price.<br>
> Does someone have objection to my applying this patch ?<br>
<br>
</span>Christophe, I wrote this patch because you thought an "overrides"<br>
section would be more intuitive than my previous solution of a<br>
specialized "all_devs" devices section option to overwrite options on<br>
all the devices.<br>
<br>
<a href="http://www.redhat.com/archives/dm-devel/2014-September/msg00047.html" target="_blank">http://www.redhat.com/archives/dm-devel/2014-September/msg00047.html</a><br>
<br>
Maybe this isn't exactly what you had in mind. At any rate, I'd like to<br>
have some method inside of multipath to accomplish this.<br>
<br>
-Ben<br>
<span class=""><br>
> Best regards,<br>
> Christophe<br>
> On Wed, Nov 19, 2014 at 7:17 AM, Benjamin Marzinski <<a href="mailto:bmarzins@redhat.com">bmarzins@redhat.com</a>><br>
> wrote:<br>
><br>
> Sometimes users want to be able to set a configuration value for all<br>
> their<br>
> devices (for instance, they may want all devices to set no_path_retry to<br>
> fail). The builtin device configurations make this tricky, since users<br>
> need<br>
> to change each device configuration individually. To avoid that, this<br>
> patch<br>
</span>> adds a new section to multipath.conf, "overrides".A This section has<br>
<span class="">> all of<br>
> the attributes that are in both the devices and defaults section.<br>
> Attributes set in the overrides section have a higher priority that<br>
> those<br>
> in the devices section. With this section added, the multipath<br>
> configuration order now goes:<br>
><br>
> multipaths > overrides > devices > defaults<br>
><br>
> I also made want_user_friendly_names print out where the configuration<br>
> came<br>
> from, and I made made select_hwhandler and select_selector always strdup<br>
</span>> the string, instead of only on the defaults.A Since multipathd will<br>
<span class="">> update<br>
> the device strings from the kernel anyway, the old way just added<br>
> complexity without saving any memory.<br>
><br>
> To store the overrides configuration, I used a hwentry structure. We may<br>
> want to make a new overrides structure, so that we set any of the<br>
> defaults<br>
</span>> values in overrides.A That way, users could skip using defaults and<br>
<span class="">> just<br>
> use overrides if they wanted. However, this would take some additional<br>
> changes to make sure that all the defaults options can undefined, which<br>
> they can't currently be.<br>
><br>
> Signed-off-by: Benjamin Marzinski <<a href="mailto:bmarzins@redhat.com">bmarzins@redhat.com</a>><br>
> ---<br>
</span>> A libmultipath/config.cA A A |A 1 +<br>
> A libmultipath/config.hA A A |A 1 +<br>
> A libmultipath/dict.cA A A A | 98<br>
> ++++++++++++++++++++++++++++++++++++++++++++++<br>
> A libmultipath/print.cA A A A | 30 ++++++++++++++<br>
> A libmultipath/print.hA A A A |A 1 +<br>
> A libmultipath/propsel.cA A A | 55 +++++++++++++++++++++-----<br>
> A libmultipath/structs.cA A A |A 9 +----<br>
> A multipath.conf.annotatedA A | 18 ++++++++-<br>
> A multipath.conf.defaultsA A |A 2 +<br>
> A multipath.conf.syntheticA A |A 3 ++<br>
> A multipath/main.cA A A A A A |A 6 +++<br>
> A multipath/multipath.conf.5 | 57 +++++++++++++++++++++++++++<br>
> A multipathd/cli_handlers.cA | 10 +++++<br>
> A 13 files changed, 273 insertions(+), 18 deletions(-)<br>
<span class="">><br>
> diff --git a/libmultipath/config.c b/libmultipath/config.c<br>
> index bfd8ee8..7f7bd5a 100644<br>
> --- a/libmultipath/config.c<br>
> +++ b/libmultipath/config.c<br>
> @@ -523,6 +523,7 @@ free_config (struct config * conf)<br>
><br>
</span>> A A A A free_mptable(conf->mptable);<br>
> A A A A free_hwtable(conf->hwtable);<br>
> +A A A A free_hwe(conf->overrides);<br>
> A A A A free_keywords(conf->keywords);<br>
> A A A A FREE(conf);<br>
> A }<br>
<span class="">> diff --git a/libmultipath/config.h b/libmultipath/config.h<br>
> index c57ab31..ef1d7c3 100644<br>
> --- a/libmultipath/config.h<br>
> +++ b/libmultipath/config.h<br>
> @@ -145,6 +145,7 @@ struct config {<br>
</span>> A A A A vector keywords;<br>
> A A A A vector mptable;<br>
> A A A A vector hwtable;<br>
> +A A A A struct hwentry *overrides;<br>
><br>
> A A A A vector blist_devnode;<br>
> A A A A vector blist_wwid;<br>
<span class="">> diff --git a/libmultipath/dict.c b/libmultipath/dict.c<br>
> index 98cbe48..737c9b0 100644<br>
> --- a/libmultipath/dict.c<br>
> +++ b/libmultipath/dict.c<br>
> @@ -181,6 +181,22 @@ snprint_hw_ ## option (char * buff, int len, void *<br>
</span>> data)A A A A A \<br>
> A A A A return function (buff, len, &hwe->option);A A A A A A<br>
> A A A A A \<br>
> A }<br>
><br>
> +#define declare_ovr_handler(option, function)A A A A A A A A A<br>
> A A A A \<br>
> +static intA A A A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A \<br>
> +ovr_ ## option ## _handler (vector strvec)A A A A A A A A A A<br>
> A A A A A \<br>
> +{A A A A A A A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A \<br>
> +A A A A if (!conf->overrides)A A A A A A A A A A A A A<br>
> A A A A A A A A A \<br>
> +A A A A A A A A return 1;A A A A A A A A A A A A A<br>
> A A A A A A A A A A A \<br>
> +A A A A return function (strvec, &conf->overrides->option);A A A<br>
> A A A A \<br>
> +}<br>
> +<br>
> +#define declare_ovr_snprint(option, function)A A A A A A A A A<br>
> A A A A \<br>
> +static intA A A A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A \<br>
> +snprint_ovr_ ## option (char * buff, int len, void * data)A A A A<br>
> A A A \<br>
> +{A A A A A A A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A \<br>
> +A A A A return function (buff, len, &conf->overrides->option);A A<br>
> A A A \<br>
> +}<br>
> +<br>
> A #define declare_mp_handler(option, function)A A A A A A A A A<br>
> A A A A A \<br>
> A static intA A A A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A \<br>
> A mp_ ## option ## _handler (vector strvec)A A A A A A A A A A<br>
> A A A A A \<br>
<span class="">> @@ -218,21 +234,29 @@ declare_def_handler(selector, set_str)<br>
</span>> A declare_def_snprint_defstr(selector, print_str, DEFAULT_SELECTOR)<br>
> A declare_hw_handler(selector, set_str)<br>
> A declare_hw_snprint(selector, print_str)<br>
> +declare_ovr_handler(selector, set_str)<br>
> +declare_ovr_snprint(selector, print_str)<br>
> A declare_mp_handler(selector, set_str)<br>
> A declare_mp_snprint(selector, print_str)<br>
><br>
> A declare_def_handler(uid_attribute, set_str)<br>
> A declare_def_snprint_defstr(uid_attribute, print_str,<br>
<span class="">> DEFAULT_UID_ATTRIBUTE)<br>
> +declare_ovr_handler(uid_attribute, set_str)<br>
> +declare_ovr_snprint(uid_attribute, print_str)<br>
</span>> A declare_hw_handler(uid_attribute, set_str)<br>
> A declare_hw_snprint(uid_attribute, print_str)<br>
><br>
> A declare_def_handler(getuid, set_str)<br>
> A declare_def_snprint(getuid, print_str)<br>
> +declare_ovr_handler(getuid, set_str)<br>
> +declare_ovr_snprint(getuid, print_str)<br>
> A declare_hw_handler(getuid, set_str)<br>
> A declare_hw_snprint(getuid, print_str)<br>
><br>
> A declare_def_handler(prio_name, set_str)<br>
> A declare_def_snprint_defstr(prio_name, print_str, DEFAULT_PRIO)<br>
> +declare_ovr_handler(prio_name, set_str)<br>
> +declare_ovr_snprint(prio_name, print_str)<br>
> A declare_hw_handler(prio_name, set_str)<br>
> A declare_hw_snprint(prio_name, print_str)<br>
> A declare_mp_handler(prio_name, set_str)<br>
<span class="">> @@ -240,11 +264,15 @@ declare_mp_snprint(prio_name, print_str)<br>
><br>
</span>> A declare_def_handler(alias_prefix, set_str)<br>
> A declare_def_snprint_defstr(alias_prefix, print_str,<br>
<span class="">> DEFAULT_ALIAS_PREFIX)<br>
> +declare_ovr_handler(alias_prefix, set_str)<br>
> +declare_ovr_snprint(alias_prefix, print_str)<br>
</span>> A declare_hw_handler(alias_prefix, set_str)<br>
> A declare_hw_snprint(alias_prefix, print_str)<br>
><br>
> A declare_def_handler(prio_args, set_str)<br>
> A declare_def_snprint_defstr(prio_args, print_str, DEFAULT_PRIO_ARGS)<br>
> +declare_ovr_handler(prio_args, set_str)<br>
> +declare_ovr_snprint(prio_args, print_str)<br>
> A declare_hw_handler(prio_args, set_str)<br>
> A declare_hw_snprint(prio_args, print_str)<br>
> A declare_mp_handler(prio_args, set_str)<br>
<span class="">> @@ -252,6 +280,8 @@ declare_mp_snprint(prio_args, print_str)<br>
><br>
</span>> A declare_def_handler(features, set_str)<br>
> A declare_def_snprint_defstr(features, print_str, DEFAULT_FEATURES)<br>
> +declare_ovr_handler(features, set_str)<br>
> +declare_ovr_snprint(features, print_str)<br>
> A declare_hw_handler(features, set_str)<br>
> A declare_hw_snprint(features, print_str)<br>
> A declare_mp_handler(features, set_str)<br>
<span class="">> @@ -259,11 +289,15 @@ declare_mp_snprint(features, print_str)<br>
><br>
</span>> A declare_def_handler(checker_name, set_str)<br>
> A declare_def_snprint_defstr(checker_name, print_str, DEFAULT_CHECKER)<br>
> +declare_ovr_handler(checker_name, set_str)<br>
> +declare_ovr_snprint(checker_name, print_str)<br>
> A declare_hw_handler(checker_name, set_str)<br>
> A declare_hw_snprint(checker_name, print_str)<br>
><br>
> A declare_def_handler(minio, set_int)<br>
> A declare_def_snprint_defint(minio, print_int, DEFAULT_MINIO)<br>
> +declare_ovr_handler(minio, set_int)<br>
> +declare_ovr_snprint(minio, print_nonzero)<br>
> A declare_hw_handler(minio, set_int)<br>
> A declare_hw_snprint(minio, print_nonzero)<br>
> A declare_mp_handler(minio, set_int)<br>
<span class="">> @@ -271,6 +305,8 @@ declare_mp_snprint(minio, print_nonzero)<br>
><br>
</span>> A declare_def_handler(minio_rq, set_int)<br>
> A declare_def_snprint_defint(minio_rq, print_int, DEFAULT_MINIO_RQ)<br>
> +declare_ovr_handler(minio_rq, set_int)<br>
> +declare_ovr_snprint(minio_rq, print_nonzero)<br>
> A declare_hw_handler(minio_rq, set_int)<br>
> A declare_hw_snprint(minio_rq, print_nonzero)<br>
> A declare_mp_handler(minio_rq, set_int)<br>
<span class="">> @@ -296,6 +332,8 @@ declare_def_snprint(checker_timeout, print_nonzero)<br>
><br>
</span>> A declare_def_handler(flush_on_last_del, set_yes_no_undef)<br>
> A declare_def_snprint_defint(flush_on_last_del, print_yes_no_undef,<br>
<span class="">> YNU_NO)<br>
> +declare_ovr_handler(flush_on_last_del, set_yes_no_undef)<br>
> +declare_ovr_snprint(flush_on_last_del, print_yes_no_undef)<br>
</span>> A declare_hw_handler(flush_on_last_del, set_yes_no_undef)<br>
> A declare_hw_snprint(flush_on_last_del, print_yes_no_undef)<br>
> A declare_mp_handler(flush_on_last_del, set_yes_no_undef)<br>
<span class="">> @@ -303,6 +341,8 @@ declare_mp_snprint(flush_on_last_del,<br>
> print_yes_no_undef)<br>
><br>
</span>> A declare_def_handler(user_friendly_names, set_yes_no_undef)<br>
> A declare_def_snprint_defint(user_friendly_names, print_yes_no_undef,<br>
<span class="">> YNU_NO)<br>
> +declare_ovr_handler(user_friendly_names, set_yes_no_undef)<br>
> +declare_ovr_snprint(user_friendly_names, print_yes_no_undef)<br>
</span>> A declare_hw_handler(user_friendly_names, set_yes_no_undef)<br>
> A declare_hw_snprint(user_friendly_names, print_yes_no_undef)<br>
> A declare_mp_handler(user_friendly_names, set_yes_no_undef)<br>
<span class="">> @@ -316,11 +356,15 @@ declare_def_snprint(wwids_file, print_str)<br>
><br>
</span>> A declare_def_handler(retain_hwhandler, set_yes_no_undef)<br>
> A declare_def_snprint_defint(retain_hwhandler, print_yes_no_undef,<br>
<span class="">> YNU_NO)<br>
> +declare_ovr_handler(retain_hwhandler, set_yes_no_undef)<br>
> +declare_ovr_snprint(retain_hwhandler, print_yes_no_undef)<br>
</span>> A declare_hw_handler(retain_hwhandler, set_yes_no_undef)<br>
> A declare_hw_snprint(retain_hwhandler, print_yes_no_undef)<br>
><br>
> A declare_def_handler(detect_prio, set_yes_no_undef)<br>
> A declare_def_snprint_defint(detect_prio, print_yes_no_undef, YNU_NO)<br>
> +declare_ovr_handler(detect_prio, set_yes_no_undef)<br>
> +declare_ovr_snprint(detect_prio, print_yes_no_undef)<br>
> A declare_hw_handler(detect_prio, set_yes_no_undef)<br>
> A declare_hw_snprint(detect_prio, print_yes_no_undef)<br>
<span class="">><br>
> @@ -512,6 +556,8 @@ print_fast_io_fail(char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(fast_io_fail, set_fast_io_fail)<br>
> A declare_def_snprint(fast_io_fail, print_fast_io_fail)<br>
> +declare_ovr_handler(fast_io_fail, set_fast_io_fail)<br>
> +declare_ovr_snprint(fast_io_fail, print_fast_io_fail)<br>
> A declare_hw_handler(fast_io_fail, set_fast_io_fail)<br>
> A declare_hw_snprint(fast_io_fail, print_fast_io_fail)<br>
<span class="">><br>
> @@ -548,6 +594,8 @@ print_dev_loss(char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(dev_loss, set_dev_loss)<br>
> A declare_def_snprint(dev_loss, print_dev_loss)<br>
> +declare_ovr_handler(dev_loss, set_dev_loss)<br>
> +declare_ovr_snprint(dev_loss, print_dev_loss)<br>
> A declare_hw_handler(dev_loss, set_dev_loss)<br>
> A declare_hw_snprint(dev_loss, print_dev_loss)<br>
<span class="">><br>
> @@ -583,6 +631,8 @@ print_pgpolicy(char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(pgpolicy, set_pgpolicy)<br>
> A declare_def_snprint_defint(pgpolicy, print_pgpolicy, DEFAULT_PGPOLICY)<br>
> +declare_ovr_handler(pgpolicy, set_pgpolicy)<br>
> +declare_ovr_snprint(pgpolicy, print_pgpolicy)<br>
> A declare_hw_handler(pgpolicy, set_pgpolicy)<br>
> A declare_hw_snprint(pgpolicy, print_pgpolicy)<br>
> A declare_mp_handler(pgpolicy, set_pgpolicy)<br>
<span class="">> @@ -700,6 +750,8 @@ print_rr_weight (char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(rr_weight, set_rr_weight)<br>
> A declare_def_snprint_defint(rr_weight, print_rr_weight, RR_WEIGHT_NONE)<br>
> +declare_ovr_handler(rr_weight, set_rr_weight)<br>
> +declare_ovr_snprint(rr_weight, print_rr_weight)<br>
> A declare_hw_handler(rr_weight, set_rr_weight)<br>
> A declare_hw_snprint(rr_weight, print_rr_weight)<br>
> A declare_mp_handler(rr_weight, set_rr_weight)<br>
<span class="">> @@ -748,6 +800,8 @@ print_pgfailback (char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(pgfailback, set_pgfailback)<br>
> A declare_def_snprint_defint(pgfailback, print_pgfailback,<br>
<span class="">> DEFAULT_FAILBACK)<br>
> +declare_ovr_handler(pgfailback, set_pgfailback)<br>
> +declare_ovr_snprint(pgfailback, print_pgfailback)<br>
</span>> A declare_hw_handler(pgfailback, set_pgfailback)<br>
> A declare_hw_snprint(pgfailback, print_pgfailback)<br>
> A declare_mp_handler(pgfailback, set_pgfailback)<br>
<span class="">> @@ -793,6 +847,8 @@ print_no_path_retry(char * buff, int len, void *ptr)<br>
><br>
</span>> A declare_def_handler(no_path_retry, set_no_path_retry)<br>
> A declare_def_snprint(no_path_retry, print_no_path_retry)<br>
> +declare_ovr_handler(no_path_retry, set_no_path_retry)<br>
> +declare_ovr_snprint(no_path_retry, print_no_path_retry)<br>
> A declare_hw_handler(no_path_retry, set_no_path_retry)<br>
> A declare_hw_snprint(no_path_retry, print_no_path_retry)<br>
> A declare_mp_handler(no_path_retry, set_no_path_retry)<br>
<span class="">> @@ -1061,6 +1117,25 @@ declare_hw_handler(hwhandler, set_str)<br>
</span>> A declare_hw_snprint(hwhandler, print_str)<br>
><br>
> A /*<br>
<span class="">> + * overrides handlers<br>
> + */<br>
> +static int<br>
> +overrides_handler(vector strvec)<br>
> +{<br>
</span>> +A A A A struct hwentry * overrides;<br>
> +<br>
> +A A A A overrides = alloc_hwe();<br>
> +<br>
> +A A A A if (!overrides)<br>
> +A A A A A A A A return 1;<br>
> +<br>
> +A A A A conf->overrides = overrides;<br>
> +A A A A return 0;<br>
<span class="">> +}<br>
> +<br>
> +<br>
> +<br>
> +/*<br>
</span>> A * multipaths block handlers<br>
> A */<br>
> A static int<br>
<span class="">> @@ -1236,6 +1311,29 @@ init_keywords(void)<br>
</span>> A A A A install_keyword("detect_prio", &hw_detect_prio_handler,<br>
> &snprint_hw_detect_prio);<br>
> A A A A install_sublevel_end();<br>
><br>
> +A A A A install_keyword_root("overrides", &overrides_handler);<br>
> +A A A A install_keyword("path_grouping_policy",<br>
> &ovr_pgpolicy_handler, &snprint_ovr_pgpolicy);<br>
> +A A A A install_keyword("uid_attribute", &ovr_uid_attribute_handler,<br>
> &snprint_ovr_uid_attribute);<br>
> +A A A A install_keyword("getuid_callout", &ovr_getuid_handler,<br>
> &snprint_ovr_getuid);<br>
> +A A A A install_keyword("path_selector", &ovr_selector_handler,<br>
> &snprint_ovr_selector);<br>
> +A A A A install_keyword("path_checker", &ovr_checker_name_handler,<br>
> &snprint_ovr_checker_name);<br>
> +A A A A install_keyword("checker", &ovr_checker_name_handler, NULL);<br>
> +A A A A install_keyword("alias_prefix", &ovr_alias_prefix_handler,<br>
> &snprint_ovr_alias_prefix);<br>
> +A A A A install_keyword("features", &ovr_features_handler,<br>
> &snprint_ovr_features);<br>
> +A A A A install_keyword("prio", &ovr_prio_name_handler,<br>
> &snprint_ovr_prio_name);<br>
> +A A A A install_keyword("prio_args", &ovr_prio_args_handler,<br>
> &snprint_ovr_prio_args);<br>
> +A A A A install_keyword("failback", &ovr_pgfailback_handler,<br>
> &snprint_ovr_pgfailback);<br>
> +A A A A install_keyword("rr_weight", &ovr_rr_weight_handler,<br>
> &snprint_ovr_rr_weight);<br>
> +A A A A install_keyword("no_path_retry", &ovr_no_path_retry_handler,<br>
> &snprint_ovr_no_path_retry);<br>
> +A A A A install_keyword("rr_min_io", &ovr_minio_handler,<br>
> &snprint_ovr_minio);<br>
> +A A A A install_keyword("rr_min_io_rq", &ovr_minio_rq_handler,<br>
> &snprint_ovr_minio_rq);<br>
> +A A A A install_keyword("flush_on_last_del",<br>
> &ovr_flush_on_last_del_handler, &snprint_ovr_flush_on_last_del);<br>
> +A A A A install_keyword("fast_io_fail_tmo",<br>
> &ovr_fast_io_fail_handler, &snprint_ovr_fast_io_fail);<br>
> +A A A A install_keyword("dev_loss_tmo", &ovr_dev_loss_handler,<br>
> &snprint_ovr_dev_loss);<br>
> +A A A A install_keyword("user_friendly_names",<br>
> &ovr_user_friendly_names_handler, &snprint_ovr_user_friendly_names);<br>
> +A A A A install_keyword("retain_attached_hw_handler",<br>
> &ovr_retain_hwhandler_handler, &snprint_ovr_retain_hwhandler);<br>
> +A A A A install_keyword("detect_prio", &ovr_detect_prio_handler,<br>
> &snprint_ovr_detect_prio);<br>
> +<br>
> A A A A install_keyword_root("multipaths", &multipaths_handler);<br>
> A A A A install_keyword_multi("multipath", &multipath_handler,<br>
> NULL);<br>
> A A A A install_sublevel();<br>
<span class="">> diff --git a/libmultipath/print.c b/libmultipath/print.c<br>
> index 383eae4..ade3841 100644<br>
> --- a/libmultipath/print.c<br>
> +++ b/libmultipath/print.c<br>
> @@ -1080,6 +1080,36 @@ snprint_mptable (char * buff, int len, vector<br>
> mptable)<br>
</span>> A }<br>
><br>
> A extern int<br>
<span class="">> +snprint_overrides (char * buff, int len, struct hwentry *overrides)<br>
> +{<br>
</span>> +A A A A int fwd = 0;<br>
> +A A A A int i;<br>
> +A A A A struct keyword *rootkw;<br>
> +A A A A struct keyword *kw;<br>
> +<br>
> +A A A A rootkw = find_keyword(NULL, "overrides");<br>
> +A A A A if (!rootkw)<br>
> +A A A A A A A A return 0;<br>
> +<br>
> +A A A A fwd += snprintf(buff + fwd, len - fwd, "overrides {\n");<br>
> +A A A A if (fwd > len)<br>
> +A A A A A A A A return len;<br>
> +A A A A if (!overrides)<br>
> +A A A A A A A A goto out;<br>
> +A A A A iterate_sub_keywords(rootkw, kw, i) {<br>
> +A A A A A A A A fwd += snprint_keyword(buff + fwd, len - fwd,<br>
> "\t%k %v\n",<br>
> +A A A A A A A A A A A A A A A A A A A kw, NULL);<br>
> +A A A A A A A A if (fwd > len)<br>
> +A A A A A A A A A A A A return len;<br>
> +A A A A }<br>
> +out:<br>
> +A A A A fwd += snprintf(buff + fwd, len - fwd, "}\n");<br>
> +A A A A if (fwd > len)<br>
> +A A A A A A A A return len;<br>
> +A A A A return fwd;<br>
> +}<br>
> +<br>
> +extern int<br>
> A snprint_defaults (char * buff, int len)<br>
> A {<br>
> A A A A int fwd = 0;<br>
<span class="">> diff --git a/libmultipath/print.h b/libmultipath/print.h<br>
> index aef182b..a3c3319 100644<br>
> --- a/libmultipath/print.h<br>
> +++ b/libmultipath/print.h<br>
> @@ -50,6 +50,7 @@ int snprint_status (char *, int, struct vectors *);<br>
</span>> A int snprint_devices (char *, int, struct vectors *);<br>
> A int snprint_hwtable (char *, int, vector);<br>
> A int snprint_mptable (char *, int, vector);<br>
<span class="">> +int snprint_overrides (char *, int, struct hwentry *);<br>
><br>
</span>> A void print_multipath_topology (struct multipath * mpp, int verbosity);<br>
> A void print_path (struct path * pp, char * style);<br>
<span class="">> diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c<br>
> index f2ab7d2..440802c 100644<br>
> --- a/libmultipath/propsel.c<br>
> +++ b/libmultipath/propsel.c<br>
</span>> @@ -48,6 +48,8 @@ do {A A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A A A A A \<br>
> A do_set(var, mp->mpe, mp->var, "(LUN setting)")<br>
> A #define mp_set_hwe(var)A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A \<br>
> A do_set(var, mp->hwe, mp->var, "(controller setting)")<br>
> +#define mp_set_ovr(var)A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A \<br>
<span class="">> +do_set(var, conf->overrides, mp->var, "(overrides setting)")<br>
</span>> A #define mp_set_conf(var)A A A A A A A A A A A A A A A<br>
> A A A A A A A A A \<br>
> A do_set(var, conf, mp->var, "(config file default)")<br>
> A #define mp_set_default(var, value)A A A A A A A A A A A A<br>
> A A A A A A A \<br>
<span class="">> @@ -59,6 +61,8 @@ do_set(var, mpe, pp->var, "(LUN setting)")<br>
</span>> A do_set(var, pp->hwe, pp->var, "(controller setting)")<br>
> A #define pp_set_conf(var)A A A A A A A A A A A A A A A<br>
> A A A A A A A A A \<br>
> A do_set(var, conf, pp->var, "(config file default)")<br>
> +#define pp_set_ovr(var)A A A A A A A A A A A A A A A A<br>
> A A A A A A A A A A A A \<br>
<span class="">> +do_set(var, conf->overrides, pp->var, "(overrides setting)")<br>
</span>> A #define pp_set_default(var, value)A A A A A A A A A A A A<br>
> A A A A A A A \<br>
> A do_default(pp->var, value)<br>
<span class="">><br>
> @@ -130,6 +134,7 @@ select_rr_weight (struct multipath * mp)<br>
</span>> A A A A char *origin, buff[13];<br>
><br>
> A A A A mp_set_mpe(rr_weight);<br>
> +A A A A mp_set_ovr(rr_weight);<br>
> A A A A mp_set_hwe(rr_weight);<br>
> A A A A mp_set_conf(rr_weight);<br>
> A A A A mp_set_default(rr_weight, RR_WEIGHT_NONE);<br>
<span class="">> @@ -145,6 +150,7 @@ select_pgfailback (struct multipath * mp)<br>
</span>> A A A A char *origin, buff[13];<br>
><br>
> A A A A mp_set_mpe(pgfailback);<br>
> +A A A A mp_set_ovr(pgfailback);<br>
> A A A A mp_set_hwe(pgfailback);<br>
> A A A A mp_set_conf(pgfailback);<br>
> A A A A mp_set_default(pgfailback, DEFAULT_FAILBACK);<br>
<span class="">> @@ -165,6 +171,7 @@ select_pgpolicy (struct multipath * mp)<br>
</span>> A A A A A A A A goto out;<br>
> A A A A }<br>
> A A A A mp_set_mpe(pgpolicy);<br>
> +A A A A mp_set_ovr(pgpolicy);<br>
> A A A A mp_set_hwe(pgpolicy);<br>
> A A A A mp_set_conf(pgpolicy);<br>
> A A A A mp_set_default(pgpolicy, DEFAULT_PGPOLICY);<br>
<span class="">> @@ -181,10 +188,12 @@ select_selector (struct multipath * mp)<br>
</span>> A A A A char *origin;<br>
><br>
> A A A A mp_set_mpe(selector);<br>
> +A A A A mp_set_ovr(selector);<br>
> A A A A mp_set_hwe(selector);<br>
> A A A A mp_set_conf(selector);<br>
> -A A A A mp_set_default(selector, set_default(DEFAULT_SELECTOR));<br>
> +A A A A mp_set_default(selector, DEFAULT_SELECTOR);<br>
> A out:<br>
> +A A A A mp->selector = STRDUP(mp->selector);<br>
> A A A A condlog(3, "%s: path_selector = \"%s\" %s", mp->alias,<br>
> mp->selector,<br>
> A A A A A A A A origin);<br>
> A A A A return 0;<br>
<span class="">> @@ -195,6 +204,7 @@ select_alias_prefix (struct multipath * mp)<br>
</span>> A {<br>
> A A A A char *origin;<br>
><br>
> +A A A A mp_set_ovr(alias_prefix);<br>
> A A A A mp_set_hwe(alias_prefix);<br>
> A A A A mp_set_conf(alias_prefix);<br>
> A A A A mp_set_default(alias_prefix, DEFAULT_ALIAS_PREFIX);<br>
<span class="">> @@ -206,19 +216,30 @@ out:<br>
</span>> A static int<br>
> A want_user_friendly_names(struct multipath * mp)<br>
> A {<br>
> -A A A A if (mp->mpe &&<br>
> -A A A A A A mp->mpe->user_friendly_names !=<br>
> USER_FRIENDLY_NAMES_UNDEF)<br>
> -A A A A A A A A return (mp->mpe->user_friendly_names ==<br>
> USER_FRIENDLY_NAMES_ON);<br>
> -A A A A if (mp->hwe &&<br>
> -A A A A A A mp->hwe->user_friendly_names !=<br>
> USER_FRIENDLY_NAMES_UNDEF)<br>
> -A A A A A A A A return (mp->hwe->user_friendly_names ==<br>
> USER_FRIENDLY_NAMES_ON);<br>
> -A A A A return (conf->user_friendly_namesA ==<br>
> USER_FRIENDLY_NAMES_ON);<br>
> +<br>
> +A A A A char *origin;<br>
> +A A A A int user_friendly_names;<br>
> +<br>
> +A A A A do_set(user_friendly_names, mp->mpe, user_friendly_names,<br>
> +A A A A A A A "(LUN setting)");<br>
> +A A A A do_set(user_friendly_names, conf->overrides,<br>
> user_friendly_names,<br>
> +A A A A A A A "(overrides setting)");<br>
> +A A A A do_set(user_friendly_names, mp->hwe, user_friendly_names,<br>
> +A A A A A A A "(controller setting)");<br>
> +A A A A do_set(user_friendly_names, conf, user_friendly_names,<br>
> +A A A A A A A "(config file setting)");<br>
> +A A A A do_default(user_friendly_names, USER_FRIENDLY_NAMES_OFF);<br>
> +out:<br>
> +A A A A condlog(3, "%s: user_friendly_names = %s %s", mp->wwid,<br>
> +A A A A A A A A (user_friendly_names == USER_FRIENDLY_NAMES_ON)?<br>
> "yes" : "no",<br>
> +A A A A A A A A origin);<br>
> +A A A A return (user_friendly_names == USER_FRIENDLY_NAMES_ON);<br>
> A }<br>
><br>
> A extern int<br>
> A select_alias (struct multipath * mp)<br>
> A {<br>
> -A A A A char *origin;<br>
> +A A A A char *origin = NULL;<br>
><br>
> A A A A if (mp->mpe && mp->mpe->alias) {<br>
> A A A A A A A A mp->alias = STRDUP(mp->mpe->alias);<br>
<span class="">> @@ -261,6 +282,7 @@ select_features (struct multipath * mp)<br>
</span>> A A A A char *origin;<br>
><br>
> A A A A mp_set_mpe(features);<br>
> +A A A A mp_set_ovr(features);<br>
> A A A A mp_set_hwe(features);<br>
> A A A A mp_set_conf(features);<br>
> A A A A mp_set_default(features, DEFAULT_FEATURES);<br>
<span class="">> @@ -287,8 +309,9 @@ select_hwhandler (struct multipath * mp)<br>
><br>
</span>> A A A A mp_set_hwe(hwhandler);<br>
> A A A A mp_set_conf(hwhandler);<br>
> -A A A A mp_set_default(hwhandler, set_default(DEFAULT_HWHANDLER));<br>
> +A A A A mp_set_default(hwhandler, DEFAULT_HWHANDLER);<br>
> A out:<br>
> +A A A A mp->hwhandler = STRDUP(mp->hwhandler);<br>
> A A A A condlog(3, "%s: hardware_handler = \"%s\" %s", mp->alias,<br>
> mp->hwhandler,<br>
> A A A A A A A A origin);<br>
> A A A A return 0;<br>
<span class="">> @@ -300,6 +323,7 @@ select_checker(struct path *pp)<br>
</span>> A A A A char *origin, *checker_name;<br>
> A A A A struct checker * c = &pp->checker;<br>
><br>
> +A A A A do_set(checker_name, conf->overrides, checker_name,<br>
> "(overrides setting)");<br>
> A A A A do_set(checker_name, pp->hwe, checker_name, "(controller<br>
> setting)");<br>
> A A A A do_set(checker_name, conf, checker_name, "(config file<br>
> setting)");<br>
> A A A A do_default(checker_name, DEFAULT_CHECKER);<br>
<span class="">> @@ -327,6 +351,8 @@ select_getuid (struct path * pp)<br>
</span>> A {<br>
> A A A A char *origin;<br>
><br>
> +A A A A pp_set_ovr(uid_attribute);<br>
> +A A A A pp_set_ovr(getuid);<br>
> A A A A pp_set_hwe(uid_attribute);<br>
> A A A A pp_set_hwe(getuid);<br>
> A A A A pp_set_conf(uid_attribute);<br>
<span class="">> @@ -383,6 +409,7 @@ select_prio (struct path * pp)<br>
</span>> A A A A }<br>
> A A A A mpe = find_mpe(pp->wwid);<br>
> A A A A set_prio(mpe, "(LUN setting)");<br>
> +A A A A set_prio(conf->overrides, "(overrides setting)");<br>
> A A A A set_prio(pp->hwe, "controller setting)");<br>
> A A A A set_prio(conf, "(config file default)");<br>
> A A A A prio_get(p, DEFAULT_PRIO, DEFAULT_PRIO_ARGS);<br>
<span class="">> @@ -405,6 +432,7 @@ select_no_path_retry(struct multipath *mp)<br>
</span>> A A A A A A A A return 0;<br>
> A A A A }<br>
> A A A A mp_set_mpe(no_path_retry);<br>
> +A A A A mp_set_ovr(no_path_retry);<br>
> A A A A mp_set_hwe(no_path_retry);<br>
> A A A A mp_set_conf(no_path_retry);<br>
> A out:<br>
<span class="">> @@ -427,6 +455,7 @@ select_minio_rq (struct multipath * mp)<br>
</span>> A A A A char *origin;<br>
><br>
> A A A A do_set(minio_rq, mp->mpe, mp->minio, "(LUN setting)");<br>
> +A A A A do_set(minio_rq, conf->overrides, mp->minio, "(overrides<br>
> setting)");<br>
> A A A A do_set(minio_rq, mp->hwe, mp->minio, "(controller<br>
> setting)");<br>
> A A A A do_set(minio_rq, conf, mp->minio, "(config file setting)");<br>
> A A A A do_default(mp->minio, DEFAULT_MINIO_RQ);<br>
<span class="">> @@ -441,6 +470,7 @@ select_minio_bio (struct multipath * mp)<br>
</span>> A A A A char *origin;<br>
><br>
> A A A A mp_set_mpe(minio);<br>
> +A A A A mp_set_ovr(minio);<br>
> A A A A mp_set_hwe(minio);<br>
> A A A A mp_set_conf(minio);<br>
> A A A A mp_set_default(minio, DEFAULT_MINIO);<br>
<span class="">> @@ -465,6 +495,7 @@ select_fast_io_fail(struct multipath *mp)<br>
</span>> A {<br>
> A A A A char *origin, buff[12];<br>
><br>
> +A A A A mp_set_ovr(fast_io_fail);<br>
> A A A A mp_set_hwe(fast_io_fail);<br>
> A A A A mp_set_conf(fast_io_fail);<br>
> A A A A mp_set_default(fast_io_fail, DEFAULT_FAST_IO_FAIL);<br>
<span class="">> @@ -479,6 +510,7 @@ select_dev_loss(struct multipath *mp)<br>
</span>> A {<br>
> A A A A char *origin, buff[12];<br>
><br>
> +A A A A mp_set_ovr(dev_loss);<br>
> A A A A mp_set_hwe(dev_loss);<br>
> A A A A mp_set_conf(dev_loss);<br>
> A A A A mp->dev_loss = 0;<br>
<span class="">> @@ -497,6 +529,7 @@ select_flush_on_last_del(struct multipath *mp)<br>
</span>> A A A A if (mp->flush_on_last_del == FLUSH_IN_PROGRESS)<br>
> A A A A A A A A return 0;<br>
> A A A A mp_set_mpe(flush_on_last_del);<br>
> +A A A A mp_set_ovr(flush_on_last_del);<br>
> A A A A mp_set_hwe(flush_on_last_del);<br>
> A A A A mp_set_conf(flush_on_last_del);<br>
> A A A A mp_set_default(flush_on_last_del, FLUSH_DISABLED);<br>
<span class="">> @@ -532,6 +565,7 @@ select_retain_hwhandler (struct multipath * mp)<br>
</span>> A A A A A A A A origin = "(requires kernel version >= 1.5.0)";<br>
> A A A A A A A A goto out;<br>
> A A A A }<br>
> +A A A A mp_set_ovr(retain_hwhandler);<br>
> A A A A mp_set_hwe(retain_hwhandler);<br>
> A A A A mp_set_conf(retain_hwhandler);<br>
> A A A A mp_set_default(retain_hwhandler, DEFAULT_RETAIN_HWHANDLER);<br>
<span class="">> @@ -547,6 +581,7 @@ select_detect_prio (struct path * pp)<br>
</span>> A {<br>
> A A A A char *origin;<br>
><br>
> +A A A A pp_set_ovr(detect_prio);<br>
> A A A A pp_set_hwe(detect_prio);<br>
> A A A A pp_set_conf(detect_prio);<br>
> A A A A pp_set_default(detect_prio, DEFAULT_DETECT_PRIO);<br>
<span class="">> diff --git a/libmultipath/structs.c b/libmultipath/structs.c<br>
> index 30d247d..0538327 100644<br>
> --- a/libmultipath/structs.c<br>
> +++ b/libmultipath/structs.c<br>
> @@ -206,10 +206,7 @@ free_multipath_attributes (struct multipath * mpp)<br>
</span>> A A A A if (!mpp)<br>
> A A A A A A A A return;<br>
><br>
> -A A A A if (mpp->selector &&<br>
> -A A A A A A mpp->selector != conf->selector &&<br>
> -A A A A A A (!mpp->mpe || (mpp->mpe && mpp->selector !=<br>
> mpp->mpe->selector)) &&<br>
> -A A A A A A (!mpp->hwe || (mpp->hwe && mpp->selector !=<br>
> mpp->hwe->selector))) {<br>
> +A A A A if (mpp->selector) {<br>
> A A A A A A A A FREE(mpp->selector);<br>
> A A A A A A A A mpp->selector = NULL;<br>
> A A A A }<br>
<span class="">> @@ -219,9 +216,7 @@ free_multipath_attributes (struct multipath * mpp)<br>
</span>> A A A A A A A A mpp->features = NULL;<br>
> A A A A }<br>
><br>
> -A A A A if (mpp->hwhandler &&<br>
> -A A A A A A mpp->hwhandler != conf->hwhandler &&<br>
> -A A A A A A (!mpp->hwe || (mpp->hwe && mpp->hwhandler !=<br>
> mpp->hwe->hwhandler))) {<br>
> +A A A A if (mpp->hwhandler) {<br>
> A A A A A A A A FREE(mpp->hwhandler);<br>
> A A A A A A A A mpp->hwhandler = NULL;<br>
> A A A A }<br>
<span class="">> diff --git a/multipath.conf.annotated b/multipath.conf.annotated<br>
> index 0af1d4c..71afc0a 100644<br>
> --- a/multipath.conf.annotated<br>
> +++ b/multipath.conf.annotated<br>
> @@ -485,7 +485,8 @@<br>
</span>> A ## scope : multipath & multipathd<br>
> A ## descA : list of per storage controller settings<br>
> A ##A A A A overrides default settings (device_maps block)<br>
> -##A A A A A overriden by per multipath settings (multipaths block)<br>
> +##A A A A overriden by per multipath settings (multipaths block)<br>
> +##A A A A and the overrides settings (overrides block)<br>
> A ##<br>
> A #devices {<br>
> A #A A A #<br>
> @@ -651,3 +652,18 @@<br>
> A #A A A A A A A rr_weightA A A A A A A A priorities<br>
> A #A A A }<br>
> A #}<br>
> +#<br>
> +##<br>
> +## nameA : devices<br>
<span class="">> +## scope : multipath & multipathd<br>
</span>> +## descA : list of settings to override all hadware settings for all<br>
> devices<br>
> +##A A A A overrides default settings (device_maps block)<br>
> +##A A A A and per device type settings (devices block)<br>
> +##A A A A overriden by per multipath settings (multipaths block)<br>
> +##<br>
> +#A A A attributes and values are identical to the device block<br>
> +#<br>
> +#overrides {<br>
> +#A A A dev_loss_tmoA A A A A A 60<br>
> +#A A A no_path_retryA A A A A A fail<br>
<span class="">> +#}<br>
> diff --git a/multipath.conf.defaults b/multipath.conf.defaults<br>
> index 654be97..1c65e02 100644<br>
> --- a/multipath.conf.defaults<br>
> +++ b/multipath.conf.defaults<br>
> @@ -912,3 +912,5 @@<br>
</span>> A #}<br>
> A #multipaths {<br>
> A #}<br>
<span class="">> +#overrides {<br>
> +#}<br>
> diff --git a/multipath.conf.synthetic b/multipath.conf.synthetic<br>
> index bda1b75..f7b9b8a 100644<br>
> --- a/multipath.conf.synthetic<br>
> +++ b/multipath.conf.synthetic<br>
> @@ -72,3 +72,6 @@<br>
</span>> A #A A A A A A A path_grouping_policyA A multibus<br>
> A #A A A }<br>
> A #}<br>
> +#overrides {<br>
> +#A A A no_path_retryA A A A A A A A A A fail<br>
<span class="">> +#}<br>
> diff --git a/multipath/main.c b/multipath/main.c<br>
> index fd6262f..ea453b4 100644<br>
> --- a/multipath/main.c<br>
> +++ b/multipath/main.c<br>
> @@ -405,6 +405,12 @@ dump_config (void)<br>
</span>> A A A A A A A A A A A A reply = REALLOC(reply, maxlen *= 2);<br>
> A A A A A A A A A A A A continue;<br>
> A A A A A A A A }<br>
> +A A A A A A A A c += snprint_overrides(c, reply + maxlen - c,<br>
> conf->overrides);<br>
> +A A A A A A A A again = ((c - reply) == maxlen);<br>
> +A A A A A A A A if (again) {<br>
> +A A A A A A A A A A A A reply = REALLOC(reply, maxlen *= 2);<br>
> +A A A A A A A A A A A A continue;<br>
> +A A A A A A A A }<br>
> A A A A A A A A c += snprint_mptable(c, reply + maxlen - c,<br>
> conf->mptable);<br>
> A A A A A A A A again = ((c - reply) == maxlen);<br>
> A A A A A A A A if (again)<br>
<span class="">> diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5<br>
> index cadb34d..b823990 100644<br>
> --- a/multipath/multipath.conf.5<br>
> +++ b/multipath/multipath.conf.5<br>
> @@ -61,6 +61,10 @@ the udev attribute given by the<br>
</span>> A .TP<br>
> A .B devices<br>
> A This section defines the device-specific settings.<br>
<span class="">> +.TP<br>
> +.B overrides<br>
> +This section defines values for attributes that should override the<br>
> +device-specific settings for all devices.<br>
</span>> A .RE<br>
> A .LP<br>
> A .SH "defaults section"<br>
<span class="">> @@ -629,6 +633,59 @@ section:<br>
</span>> A .RE<br>
> A .PD<br>
> A .LP<br>
<div><div class="h5">> +.SH "overrides section"<br>
> +The overrides section recognizes the following optional attributes; if<br>
> not set<br>
> +the values are taken from the<br>
> +.I devices<br>
> +or<br>
> +.I defaults<br>
> +sections:<br>
> +.sp 1<br>
> +.PD .1v<br>
> +.RS<br>
> +.TP 18<br>
> +.B path_grouping_policy<br>
> +.TP<br>
> +.B uid_attribute<br>
> +.TP<br>
> +.B getuid_callout<br>
> +.TP<br>
> +.B path_selector<br>
> +.TP<br>
> +.B path_checker<br>
> +.TP<br>
> +.B alias_prefix<br>
> +.TP<br>
> +.B features<br>
> +.TP<br>
> +.B prio<br>
> +.TP<br>
> +.B prio_args<br>
> +.TP<br>
> +.B failback<br>
> +.TP<br>
> +.B rr_weight<br>
> +.TP<br>
> +.B no_path_retry<br>
> +.TP<br>
> +.B rr_min_io<br>
> +.TP<br>
> +.B rr_min_io_rq<br>
> +.TP<br>
> +.B flush_on_last_del<br>
> +.TP<br>
> +.B fast_io_fail_tmo<br>
> +.TP<br>
> +.B dev_loss_tmo<br>
> +.TP<br>
> +.B user_friendly_names<br>
> +.TP<br>
> +.B retain_attached_hw_handler<br>
> +.TP<br>
> +.B detect_prio<br>
> +.RE<br>
> +.PD<br>
> +.LP<br>
</div></div>> A .SH "KNOWN ISSUES"<br>
> A The usage of<br>
> A .B queue_if_no_path<br>
<span class="">> diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c<br>
> index b086340..0ce1408 100644<br>
> --- a/multipathd/cli_handlers.c<br>
> +++ b/multipathd/cli_handlers.c<br>
> @@ -190,6 +190,16 @@ show_config (char ** r, int * len)<br>
</span>> A A A A A A A A A A A A maxlen *= 2;<br>
> A A A A A A A A A A A A continue;<br>
> A A A A A A A A }<br>
> +A A A A A A A A c += snprint_overrides(c, reply + maxlen - c,<br>
> conf->overrides);<br>
> +A A A A A A A A again = ((c - reply) == maxlen);<br>
> +A A A A A A A A if (again) {<br>
> +A A A A A A A A A A A A reply = REALLOC(reply, maxlen * 2);<br>
> +A A A A A A A A A A A A if (!reply)<br>
> +A A A A A A A A A A A A A A A A return 1;<br>
> +A A A A A A A A A A A A memset(reply + maxlen, 0, maxlen);<br>
> +A A A A A A A A A A A A maxlen *= 2;<br>
> +A A A A A A A A A A A A continue;<br>
> +A A A A A A A A }<br>
> A A A A A A A A c += snprint_mptable(c, reply + maxlen - c,<br>
> conf->mptable);<br>
> A A A A A A A A again = ((c - reply) == maxlen);<br>
> A A A A A A A A REALLOC_REPLY(reply, again, maxlen);<br>
> --<br>
> 1.8.3.1<br>
</blockquote></div><br></div>