From: Christophe Varoqui <christophe.varoqui@gmail.com>
To: "hare@suse.de" <hare@suse.de>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: Re: [PATCH 1/2] [multipath-tools] Fix failback parameter parsing in conf
Date: Sat, 27 Apr 2013 10:18:27 +0200 [thread overview]
Message-ID: <1367050707.23503.6.camel@lapoo.opensvc.com> (raw)
In-Reply-To: <8255ED565A0EAA4A960625E27D49DBF21FFB6B71@SACEXCMBX04-PRD.hq.netapp.com>
On mar., 2013-04-23 at 21:21 +0000, Stewart, Sean wrote:
> This patch fixes a problem introduced in this commit: http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=commitdiff;h=cef43b6f910f740c0e2d38761f58c5ebedfb7585;hp=41b85341ca514a50d18c592996a2ecb43a81fa90
> Currently, the string handler for failback on hw entries expects strings like "manual" to be quoted. The buffer always strips quotes.
> As a result, the keywords manual, immediate, and followover cannot be used to change a failback parameter through multipath.conf
>
Hannes,
do you ack this one, which reverts part of
cef43b6f910f740c0e2d38761f58c5ebedfb7585 from your tree ?
Best regards,
Christophe Varoqui
www.opensvc.com
> Signed-off-by: Sean Stewart <Sean.Stewart@netapp.com>
>
> ---
> diff --git a/libmultipath/dict.c b/libmultipath/dict.c
> index a54dda9..5154cdd 100644
> --- a/libmultipath/dict.c
> +++ b/libmultipath/dict.c
> @@ -1108,11 +1108,11 @@ hw_failback_handler(vector strvec)
>
> buff = set_value(strvec);
>
> - if (strlen(buff) == 6 && !strcmp(buff, "\"manual\""))
> + if (strlen(buff) == 6 && !strcmp(buff, "manual"))
> hwe->pgfailback = -FAILBACK_MANUAL;
> - else if (strlen(buff) == 9 && !strcmp(buff, "\"immediate\""))
> + else if (strlen(buff) == 9 && !strcmp(buff, "immediate"))
> hwe->pgfailback = -FAILBACK_IMMEDIATE;
> - else if (strlen(buff) == 10 && !strcmp(buff, "\"followover\""))
> + else if (strlen(buff) == 10 && !strcmp(buff, "followover"))
> hwe->pgfailback = -FAILBACK_FOLLOWOVER;
> else
> hwe->pgfailback = atoi(buff);
> --
next prev parent reply other threads:[~2013-04-27 8:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-23 21:21 [PATCH 1/2] [multipath-tools] Fix failback parameter parsing in conf Stewart, Sean
2013-04-27 8:18 ` Christophe Varoqui [this message]
2013-04-29 6:01 ` Hannes Reinecke
2013-04-29 20:51 ` Christophe Varoqui
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=1367050707.23503.6.camel@lapoo.opensvc.com \
--to=christophe.varoqui@gmail.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@redhat.com \
--cc=hare@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox