|
|
4728c8 |
---
|
|
|
4728c8 |
libmultipath/print.c | 11 +++++++++++
|
|
|
4728c8 |
1 file changed, 11 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 |
@@ -510,6 +510,16 @@ snprint_tgt_wwnn (char * buff, size_t le
|
|
|
4728c8 |
}
|
|
|
4728c8 |
|
|
|
4728c8 |
static int
|
|
|
4728c8 |
+snprint_host_adapter (char * buff, size_t len, struct path * pp)
|
|
|
4728c8 |
+{
|
|
|
4728c8 |
+ char adapter[SLOT_NAME_SIZE];
|
|
|
4728c8 |
+
|
|
|
4728c8 |
+ if (sysfs_get_host_adapter_name(pp, adapter))
|
|
|
4728c8 |
+ return snprintf(buff, len, "[undef]");
|
|
|
4728c8 |
+ return snprint_str(buff, len, adapter);
|
|
|
4728c8 |
+}
|
|
|
4728c8 |
+
|
|
|
4728c8 |
+static int
|
|
|
4728c8 |
snprint_path_checker (char * buff, size_t len, struct path * pp)
|
|
|
4728c8 |
{
|
|
|
4728c8 |
struct checker * c = &pp->checker;
|
|
|
4728c8 |
@@ -557,6 +567,7 @@ struct path_data pd[] = {
|
|
|
4728c8 |
{'n', "target WWNN", 0, snprint_tgt_wwnn},
|
|
|
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, NULL, 0 , NULL}
|
|
|
4728c8 |
};
|
|
|
4728c8 |
|