Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread The Lee-Man
On Monday, November 7, 2016 at 11:22:23 AM UTC-7, Chris Leech wrote: > > Currently the iSCSI transport class synchronises target scanning and > unbinding with a host level mutex. For multi-session hosts (offloading > iSCSI HBAs) connecting to storage arrays that may implement one > target-per-l

how to get iscsi target details(iqn) from device OS name programmatically at initiator side

2016-11-10 Thread lvpriyanaidu
i need C/C++ library/API at initiator side which can give me the iscsi target details(iqn) when i pass the OS device name or scsi-channel-lun details. for example input will be "/dev/sdc" or something like "scsi12 Channel 00 Id 0 Lun: 0" and the output should be the corresponding target iqn .

Re: why certain function name prefix of “_ _” (double underscore)

2016-11-10 Thread The Lee-Man
On Tuesday, November 8, 2016 at 4:29:05 PM UTC-7, Raghu Murugesan wrote: > > I am reading the source code of open-iscsi. In source files, I see few > functions start with prefix "__". Whats the reason behind naming a function > with double underscore as prefix in general in C language? > > Exampl

Re: how to get iscsi target details(iqn) from device OS name programmatically at initiator side

2016-11-10 Thread The Lee-Man
On Thursday, November 10, 2016 at 11:03:09 AM UTC-7, lvpriyana...@gmail.com wrote: > > i need C/C++ library/API at initiator side which can give me the iscsi > target details(iqn) when i pass the OS device name or scsi-channel-lun > details. > > for example input will be "/dev/sdc" or something

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Chris Leech
On Thu, Nov 10, 2016 at 10:00:54AM -0800, The Lee-Man wrote: > On Monday, November 7, 2016 at 11:22:23 AM UTC-7, Chris Leech wrote: > > > > Currently the iSCSI transport class synchronises target scanning and > > unbinding with a host level mutex. For multi-session hosts (offloading > > iSCSI HB

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Lee Duncan
> On Nov 10, 2016, at 1:22 PM, Chris Leech wrote: > > On Thu, Nov 10, 2016 at 10:00:54AM -0800, The Lee-Man wrote: >> On Monday, November 7, 2016 at 11:22:23 AM UTC-7, Chris Leech wrote: >>> >>> Currently the iSCSI transport class synchronises target scanning and >>> unbinding with a host leve

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Mike Christie
On 11/07/2016 12:22 PM, Chris Leech wrote: > Currently the iSCSI transport class synchronises target scanning and > unbinding with a host level mutex. For multi-session hosts (offloading > iSCSI HBAs) connecting to storage arrays that may implement one > target-per-lun, this can result in the targ

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Chris Leech
On Thu, Nov 10, 2016 at 05:22:44PM -0600, Mike Christie wrote: > On 11/07/2016 12:22 PM, Chris Leech wrote: > > Currently the iSCSI transport class synchronises target scanning and > > unbinding with a host level mutex. For multi-session hosts (offloading > > iSCSI HBAs) connecting to storage arra

Re: iscsi: make mutex for target scanning and unbinding per-session

2016-11-10 Thread Mike Christie
On 11/10/2016 07:13 PM, Chris Leech wrote: > On Thu, Nov 10, 2016 at 05:22:44PM -0600, Mike Christie wrote: >> > On 11/07/2016 12:22 PM, Chris Leech wrote: >>> > > Currently the iSCSI transport class synchronises target scanning and >>> > > unbinding with a host level mutex. For multi-session host

[RESEND][PATCH v2 0/3] Add QLogic FastLinQ offload iSCSI driver (qedi) support

2016-11-10 Thread Nilesh Javali
This patchset adds qedi driver support for QLogic FastLinQ 41000 Series Converged Network Adapters for iSCSI offload. Changes from RFC v1: Added a new field under iscsi_transport_template struct to identify netdev device. Nilesh Javali (3): iscsid: Changes to support the new qedi transport i

[RESEND][PATCH v2 3/3] iscsiuio: v0.7.8.3

2016-11-10 Thread Nilesh Javali
Signed-off-by: Manish Rangankar Signed-off-by: Adheer Chandravanshi Signed-off-by: Nilesh Javali --- iscsiuio/README | 4 ++-- iscsiuio/RELEASE.TXT | 20 iscsiuio/configure.ac | 4 ++-- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/iscsiuio/READM

[RESEND][PATCH v2 2/3] iscsiuio: Add support for the new qedi transport

2016-11-10 Thread Nilesh Javali
Signed-off-by: Manish Rangankar Signed-off-by: Adheer Chandravanshi Signed-off-by: Nilesh Javali --- iscsiuio/src/unix/libs/Makefile.am |3 +- iscsiuio/src/unix/libs/cnic.c |9 + iscsiuio/src/unix/libs/cnic.h |2 + iscsiuio/src/unix/libs/qedi.c | 1151

[RESEND][PATCH v2 1/3] iscsid: Changes to support the new qedi transport

2016-11-10 Thread Nilesh Javali
Signed-off-by: Manish Rangankar Signed-off-by: Adheer Chandravanshi Signed-off-by: Nilesh Javali --- usr/initiator_common.c | 2 +- usr/transport.c| 13 + usr/transport.h| 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/usr/initiator_common.c b/

Antw: how to get iscsi target details(iqn) from device OS name programmatically at initiator side

2016-11-10 Thread Ulrich Windl
>>> schrieb am 10.11.2016 um 11:16 in Nachricht <4e2f30b5-7c75-47d6-ad1e-2470b92bd...@googlegroups.com>: > > i need C/C++ library/API at initiator side which can give me the iscsi > target details(iqn) when i pass the OS device name or scsi-channel-lun > details. > > for example input will be