Blame SOURCES/0035-RHBZ-891921-list-mpp.patch

f20720
---
f20720
 libmultipath/print.c |   11 +++++++++++
f20720
 1 file changed, 11 insertions(+)
f20720
f20720
Index: multipath-tools-130222/libmultipath/print.c
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/libmultipath/print.c
f20720
+++ multipath-tools-130222/libmultipath/print.c
f20720
@@ -422,6 +422,16 @@ snprint_path_serial (char * buff, size_t
f20720
 }
f20720
 
f20720
 static int
f20720
+snprint_path_mpp (char * buff, size_t len, struct path * pp)
f20720
+{
f20720
+	if (!pp->mpp)
f20720
+		return snprintf(buff, len, "[orphan]");
f20720
+	if (!pp->mpp->alias)
f20720
+		return snprintf(buff, len, "[unknown]");
f20720
+	return snprint_str(buff, len, pp->mpp->alias);
f20720
+}
f20720
+
f20720
+static int
f20720
 snprint_path_checker (char * buff, size_t len, struct path * pp)
f20720
 {
f20720
 	struct checker * c = &pp->checker;
f20720
@@ -464,6 +474,7 @@ struct path_data pd[] = {
f20720
 	{'p', "pri",           0, snprint_pri},
f20720
 	{'S', "size",          0, snprint_path_size},
f20720
 	{'z', "serial",        0, snprint_path_serial},
f20720
+	{'m', "multipath",     0, snprint_path_mpp},
f20720
 	{0, NULL, 0 , NULL}
f20720
 };
f20720