[multipath] show path group priority value in '-ll' and map [re]load modes
authorroot <root@xa-s05.(none)>
Tue, 23 Aug 2005 08:34:46 +0000 (10:34 +0200)
committerroot <root@xa-s05.(none)>
Tue, 23 Aug 2005 08:34:46 +0000 (10:34 +0200)
Asked by Ed Goggin, EMC, to diagnose easily when failback may be opportune.

multipath/main.c

index ee0cee7..9f6a561 100644 (file)
@@ -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)