[Open-FCoE] [PATCH 1/2] libhbalinux: HBA_GetFcpTargetMapping failed to find devices

Steve Ma steve.ma at intel.com
Wed Oct 1 02:21:32 UTC 2008


The HBAAPI function HBA_GetFcpTargetMapping is supported by
the get_binding_target_mapping_v1 routine in the vendor library.
The get_binding_target_mapping_v1 routine missed the setting of
ctxt.oc_target = -1; which prevents the routine to find all
the devices on the /sys file system.

Signed-off-by: Steve Ma <steve.ma at intel.com>
---

 libhbalinux/bind.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libhbalinux/bind.c b/libhbalinux/bind.c
index 4339c82..eaf8549 100644
--- a/libhbalinux/bind.c
+++ b/libhbalinux/bind.c
@@ -263,6 +263,7 @@ get_binding_target_mapping_v1(HBA_HANDLE handle, HBA_FCPTARGETMAPPING *map)
 	ctxt.oc_handle = handle;
 	ctxt.oc_kern_hba = ap->ad_kern_index;
 	ctxt.oc_port = -1;
+	ctxt.oc_target = -1;
 	ctxt.oc_lun = -1;
 	ctxt.oc_limit = map->NumberOfEntries;
 	ctxt.oc_ver = 1;




More information about the devel mailing list