diff mbox

libmultipath: fix error parsing "find_multipaths strict"

Message ID 20180515123244.6017-1-mwilck@suse.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show

Commit Message

Martin Wilck May 15, 2018, 12:32 p.m. UTC
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(-)

Comments

Christophe Varoqui May 15, 2018, 12:58 p.m. UTC | #1
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
>
>
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

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,
 };