Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Wilck <mwilck@suse.com> |
| 3 | Date: Tue, 15 May 2018 14:32:44 +0200 |
| 4 | Subject: [PATCH] libmultipath: fix error parsing "find_multipaths strict" |
| 5 | |
| 6 | If "find_multipaths strict" is set in multipath.conf, the error message |
| 7 | "illegal value for find_multipaths: strict" is printed. This causes no |
| 8 | functional problem, as "strict" happens to be the default, fallback |
| 9 | value. It should be fixed nonetheless. FIND_MULTIPATHS_STRICT, having |
| 10 | the highest numeric value, must be last in the enum. |
| 11 | |
| 12 | Fixes: c36f2f42 "libmultipath: change find_multipaths option to multi-value" |
| 13 | Signed-off-by: Martin Wilck <mwilck@suse.com> |
| 14 | Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> |
| 15 | --- |
| 16 | libmultipath/structs.h | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/libmultipath/structs.h b/libmultipath/structs.h |
| 20 | index 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 | -- |
| 35 | 2.7.4 |
| 36 | |