From: root Date: Tue, 23 Aug 2005 08:34:46 +0000 (+0200) Subject: [multipath] show path group priority value in '-ll' and map [re]load modes X-Git-Tag: 0.4.5~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=be557acd46d90741b3f6b2efaccaebd7489c102a;p=platform%2Fupstream%2Fmultipath-tools.git [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. --- 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)