blob: 8ce2431d60b085a1978c75fdaca056cae9d96c15 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Martin Wilck <mwilck@suse.com>
3Date: Tue, 15 May 2018 14:32:44 +0200
4Subject: [PATCH] libmultipath: fix error parsing "find_multipaths strict"
5
6If "find_multipaths strict" is set in multipath.conf, the error message
7"illegal value for find_multipaths: strict" is printed. This causes no
8functional problem, as "strict" happens to be the default, fallback
9value. It should be fixed nonetheless. FIND_MULTIPATHS_STRICT, having
10the highest numeric value, must be last in the enum.
11
12Fixes: c36f2f42 "libmultipath: change find_multipaths option to multi-value"
13Signed-off-by: Martin Wilck <mwilck@suse.com>
14Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
15---
16 libmultipath/structs.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/libmultipath/structs.h b/libmultipath/structs.h
20index eb6a178..e424b15 100644
21--- a/libmultipath/structs.h
22+++ b/libmultipath/structs.h
23@@ -122,9 +122,9 @@ enum find_multipaths_states {
24 FIND_MULTIPATHS_UNDEF = YNU_UNDEF,
25 FIND_MULTIPATHS_OFF = YNU_NO,
26 FIND_MULTIPATHS_ON = _FIND_MULTIPATHS_F,
27- FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
28 FIND_MULTIPATHS_GREEDY = _FIND_MULTIPATHS_I,
29 FIND_MULTIPATHS_SMART = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_I,
30+ FIND_MULTIPATHS_STRICT = _FIND_MULTIPATHS_F|_FIND_MULTIPATHS_N,
31 __FIND_MULTIPATHS_LAST,
32 };
33
34--
352.7.4
36