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