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