You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
995 B
33 lines
995 B
6 years ago
|
---
|
||
|
libmultipath/print.c | 11 +++++++++++
|
||
|
1 file changed, 11 insertions(+)
|
||
|
|
||
|
Index: multipath-tools-130222/libmultipath/print.c
|
||
|
===================================================================
|
||
|
--- multipath-tools-130222.orig/libmultipath/print.c
|
||
|
+++ multipath-tools-130222/libmultipath/print.c
|
||
|
@@ -422,6 +422,16 @@ snprint_path_serial (char * buff, size_t
|
||
|
}
|
||
|
|
||
|
static int
|
||
|
+snprint_path_mpp (char * buff, size_t len, struct path * pp)
|
||
|
+{
|
||
|
+ if (!pp->mpp)
|
||
|
+ return snprintf(buff, len, "[orphan]");
|
||
|
+ if (!pp->mpp->alias)
|
||
|
+ return snprintf(buff, len, "[unknown]");
|
||
|
+ return snprint_str(buff, len, pp->mpp->alias);
|
||
|
+}
|
||
|
+
|
||
|
+static int
|
||
|
snprint_path_checker (char * buff, size_t len, struct path * pp)
|
||
|
{
|
||
|
struct checker * c = &pp->checker;
|
||
|
@@ -464,6 +474,7 @@ struct path_data pd[] = {
|
||
|
{'p', "pri", 0, snprint_pri},
|
||
|
{'S', "size", 0, snprint_path_size},
|
||
|
{'z', "serial", 0, snprint_path_serial},
|
||
|
+ {'m', "multipath", 0, snprint_path_mpp},
|
||
|
{0, NULL, 0 , NULL}
|
||
|
};
|