[Open-FCoE] [PATCH] fcoe-utils: fcoeadm -i displays HBA header for every port.

Steve Ma steve.ma at intel.com
Tue Apr 28 20:54:47 UTC 2009


The "fcoeadm -i" should only display HBA header per HBA,
not per-port.
---

 fcoeadm_display.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fcoeadm_display.c b/fcoeadm_display.c
index 050563f..795113a 100644
--- a/fcoeadm_display.c
+++ b/fcoeadm_display.c
@@ -1223,7 +1223,8 @@ display_adapter_info(struct opt_info *opt_info)
 			if (opt_info->ifname &&
 			    !strstr(port_attrs.PortSymbolicName, opt_info->ifname))
 				continue;
-			show_hba_info(hba_index, &hba_attrs, 0);
+			if (rc)
+				show_hba_info(hba_index, &hba_attrs, 0);
 			show_port_info(hba_index, lp_index, &hba_attrs,
 					&port_attrs);
 		}




More information about the devel mailing list