Blame SOURCES/0241-RHBZ-1554516-show-path-failures.patch

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