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

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