From be557acd46d90741b3f6b2efaccaebd7489c102a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Aug 2005 10:34:46 +0200 Subject: [PATCH] [multipath] show path group priority value in '-ll' and map [re]load modes Asked by Ed Goggin, EMC, to diagnose easily when failback may be opportune. --- multipath/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/multipath/main.c b/multipath/main.c index ee0cee7..9f6a561 100644 --- a/multipath/main.c +++ b/multipath/main.c @@ -249,6 +249,8 @@ print_mp (struct multipath * mpp) printf(" "); #endif } + if (pgp->priority) + printf("[prio=%i]", pgp->priority); switch (pgp->status) { case PGSTATE_ENABLED: @@ -805,9 +807,10 @@ get_dm_mpvec (vector curmp, vector pathvec, char * refwwid) * If not in "fast list mode", we need to fetch information * about them */ - if (conf->list != 1) + if (conf->list != 1) { update_pathvec(pathvec); - + select_path_group(mpp); + } disassemble_status(mpp->status, mpp); if (conf->list) -- 2.7.4