All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libmultipath: fix error parsing "find_multipaths strict"
@ 2018-05-15 12:32 Martin Wilck
  2018-05-15 12:58 ` Christophe Varoqui
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Wilck @ 2018-05-15 12:32 UTC (permalink / raw)
  To: Christophe Varoqui; +Cc: dm-devel, Martin Wilck

If "find_multipaths strict" is set in multipath.conf, the error message
"illegal value for find_multipaths: strict" is printed. This causes no
functional problem, as "strict" happens to be the default, fallback
value. It should be fixed nonetheless. FIND_MULTIPATHS_STRICT, having
the highest numeric value, must be last in the enum.

Fixes: c36f2f42 "libmultipath: change find_multipaths option to multi-value"
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmultipath/structs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmultipath/structs.h b/libmultipath/structs.h
index eb6a1788..e424b150 100644
--- a/libmultipath/structs.h
+++ b/libmultipath/structs.h
@@ -122,9 +122,9 @@ enum find_multipaths_states {
 	FIND_MULTIPATHS_UNDEF = YNU_UNDEF,
 	FIND_MULTIPATHS_OFF = YNU_NO,
 	FIND_MULTIPATHS_ON = _FIND_MULTIPATHS_F,
-	FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
 	FIND_MULTIPATHS_GREEDY = _FIND_MULTIPATHS_I,
 	FIND_MULTIPATHS_SMART = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_I,
+	FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
 	__FIND_MULTIPATHS_LAST,
 };
 
-- 
2.16.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libmultipath: fix error parsing "find_multipaths strict"
  2018-05-15 12:32 [PATCH] libmultipath: fix error parsing "find_multipaths strict" Martin Wilck
@ 2018-05-15 12:58 ` Christophe Varoqui
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Varoqui @ 2018-05-15 12:58 UTC (permalink / raw)
  To: Martin Wilck; +Cc: device-mapper development


[-- Attachment #1.1: Type: text/plain, Size: 1337 bytes --]

Merged,
thanks.

On Tue, May 15, 2018 at 2:32 PM, Martin Wilck <mwilck@suse.com> wrote:

> If "find_multipaths strict" is set in multipath.conf, the error message
> "illegal value for find_multipaths: strict" is printed. This causes no
> functional problem, as "strict" happens to be the default, fallback
> value. It should be fixed nonetheless. FIND_MULTIPATHS_STRICT, having
> the highest numeric value, must be last in the enum.
>
> Fixes: c36f2f42 "libmultipath: change find_multipaths option to
> multi-value"
> Signed-off-by: Martin Wilck <mwilck@suse.com>
> ---
>  libmultipath/structs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libmultipath/structs.h b/libmultipath/structs.h
> index eb6a1788..e424b150 100644
> --- a/libmultipath/structs.h
> +++ b/libmultipath/structs.h
> @@ -122,9 +122,9 @@ enum find_multipaths_states {
>         FIND_MULTIPATHS_UNDEF = YNU_UNDEF,
>         FIND_MULTIPATHS_OFF = YNU_NO,
>         FIND_MULTIPATHS_ON = _FIND_MULTIPATHS_F,
> -       FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
>         FIND_MULTIPATHS_GREEDY = _FIND_MULTIPATHS_I,
>         FIND_MULTIPATHS_SMART = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_I,
> +       FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
>         __FIND_MULTIPATHS_LAST,
>  };
>
> --
> 2.16.3
>
>

[-- Attachment #1.2: Type: text/html, Size: 1920 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-15 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 12:32 [PATCH] libmultipath: fix error parsing "find_multipaths strict" Martin Wilck
2018-05-15 12:58 ` Christophe Varoqui

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.