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

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