|
|
6add9d |
---
|
|
|
6add9d |
libmultipath/print.c | 7 +++++++
|
|
|
6add9d |
1 file changed, 7 insertions(+)
|
|
|
6add9d |
|
|
|
6add9d |
Index: multipath-tools-130222/libmultipath/print.c
|
|
|
6add9d |
===================================================================
|
|
|
6add9d |
--- multipath-tools-130222.orig/libmultipath/print.c
|
|
|
6add9d |
+++ multipath-tools-130222/libmultipath/print.c
|
|
|
6add9d |
@@ -601,6 +601,12 @@ snprint_path_checker (char * buff, size_
|
|
|
6add9d |
return snprint_str(buff, len, c->name);
|
|
|
6add9d |
}
|
|
|
6add9d |
|
|
|
6add9d |
+static int
|
|
|
6add9d |
+snprint_path_failures(char * buff, size_t len, struct path * pp)
|
|
|
6add9d |
+{
|
|
|
6add9d |
+ return snprint_int(buff, len, pp->failcount);
|
|
|
6add9d |
+}
|
|
|
6add9d |
+
|
|
|
6add9d |
struct multipath_data mpd[] = {
|
|
|
6add9d |
{'n', "name", 0, snprint_name},
|
|
|
6add9d |
{'w', "uuid", 0, snprint_multipath_uuid},
|
|
|
6add9d |
@@ -647,6 +653,7 @@ struct path_data pd[] = {
|
|
|
6add9d |
{'R', "host WWPN", 0, snprint_host_wwpn},
|
|
|
6add9d |
{'r', "target WWPN", 0, snprint_tgt_wwpn},
|
|
|
6add9d |
{'a', "host adapter", 0, snprint_host_adapter},
|
|
|
6add9d |
+ {'0', "failures", 0, snprint_path_failures},
|
|
|
6add9d |
{0, NULL, 0 , NULL}
|
|
|
6add9d |
};
|
|
|
6add9d |
|