Blame SOURCES/0237-RHBZ-1526876-show-sysfs-state.patch

4ae388
---
4ae388
 multipath/main.c |    9 ++++++---
4ae388
 1 file changed, 6 insertions(+), 3 deletions(-)
4ae388
4ae388
Index: multipath-tools-130222/multipath/main.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/multipath/main.c
4ae388
+++ multipath-tools-130222/multipath/main.c
4ae388
@@ -135,7 +135,7 @@ usage (char * progname)
4ae388
 }
4ae388
 
4ae388
 static int
4ae388
-update_paths (struct multipath * mpp)
4ae388
+update_paths (struct multipath * mpp, int quick)
4ae388
 {
4ae388
 	int i, j;
4ae388
 	struct pathgroup * pgp;
4ae388
@@ -149,6 +149,10 @@ update_paths (struct multipath * mpp)
4ae388
 			continue;
4ae388
 
4ae388
 		vector_foreach_slot (pgp->paths, pp, j) {
4ae388
+			if (quick) {
4ae388
+				pp->mpp = mpp;
4ae388
+				continue;
4ae388
+			}
4ae388
 			if (!strlen(pp->dev)) {
4ae388
 				if (devt2devname(pp->dev, FILE_NAME_SIZE,
4ae388
 						 pp->dev_t)) {
4ae388
@@ -213,8 +217,7 @@ get_dm_mpvec (vector curmp, vector pathv
4ae388
 		 * If not in "fast list mode", we need to fetch information
4ae388
 		 * about them
4ae388
 		 */
4ae388
-		if (conf->cmd != CMD_LIST_SHORT)
4ae388
-			update_paths(mpp);
4ae388
+		update_paths(mpp, (conf->cmd == CMD_LIST_SHORT));
4ae388
 
4ae388
 		if (conf->cmd == CMD_LIST_LONG)
4ae388
 			mpp->bestpg = select_path_group(mpp);