[dm-devel] [PATCH 14/33] multipath -ll: set DI_SERIAL

Martin Wilck mwilck at suse.com
Tue Feb 28 16:23:10 UTC 2017


From: Martin Wilck <mwilck at suse.de>

Without DI_SERIAL, multipath -ll will not be able to obtain correct
PG priorities in certain configurations (e.g. prio "weightedpath",
prio_args "serial..."). We do not set DI_SERIAL for the multipath -l
case, where information is supposed to come from sysfs+device mapper
only.

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 multipath/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/multipath/main.c b/multipath/main.c
index 5811630c..8ce87a08 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -367,7 +367,7 @@ configure (struct config *conf, enum mpath_cmds cmd,
 
 	if (cmd == CMD_LIST_LONG)
 		/* extended path info '-ll' */
-		di_flag |= DI_SYSFS | DI_CHECKER;
+		di_flag |= DI_SYSFS | DI_CHECKER | DI_SERIAL;
 	else if (cmd == CMD_LIST_SHORT)
 		/* minimum path info '-l' */
 		di_flag |= DI_SYSFS;
-- 
2.11.0




More information about the dm-devel mailing list