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