Blame SOURCES/0107-RH-adapter-name-wildcard.patch

ecd2a9
---
ecd2a9
 libmultipath/print.c |   11 +++++++++++
ecd2a9
 1 file changed, 11 insertions(+)
ecd2a9
ecd2a9
Index: multipath-tools-130222/libmultipath/print.c
ecd2a9
===================================================================
ecd2a9
--- multipath-tools-130222.orig/libmultipath/print.c
ecd2a9
+++ multipath-tools-130222/libmultipath/print.c
ecd2a9
@@ -510,6 +510,16 @@ snprint_tgt_wwnn (char * buff, size_t le
ecd2a9
 }
ecd2a9
 
ecd2a9
 static int
ecd2a9
+snprint_host_adapter (char * buff, size_t len, struct path * pp)
ecd2a9
+{
ecd2a9
+	char adapter[SLOT_NAME_SIZE];
ecd2a9
+
ecd2a9
+	if (sysfs_get_host_adapter_name(pp, adapter))
ecd2a9
+		return snprintf(buff, len, "[undef]");
ecd2a9
+	return snprint_str(buff, len, adapter);
ecd2a9
+}
ecd2a9
+
ecd2a9
+static int
ecd2a9
 snprint_path_checker (char * buff, size_t len, struct path * pp)
ecd2a9
 {
ecd2a9
 	struct checker * c = &pp->checker;
ecd2a9
@@ -557,6 +567,7 @@ struct path_data pd[] = {
ecd2a9
 	{'n', "target WWNN",   0, snprint_tgt_wwnn},
ecd2a9
 	{'R', "host WWPN",     0, snprint_host_wwpn},
ecd2a9
 	{'r', "target WWPN",   0, snprint_tgt_wwpn},
ecd2a9
+	{'a', "host adapter",  0, snprint_host_adapter},
ecd2a9
 	{0, NULL, 0 , NULL}
ecd2a9
 };
ecd2a9