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

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