[PATCH] Open-iSCSI: support for moving flashnode sysfs entries from a bus to a class

2017-08-04 Thread Chris Leech
Tools support for the posted interface breaking flashnode sysfs changes. Still falls back to the bus path, maintaining compatibility. --- usr/iscsi_sysfs.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c

[PATCH 2/9] iscsi: sysfs filtering by network namespace

2017-08-04 Thread Chris Leech
This makes the iscsi_host, iscsi_session, iscsi_connection, iscsi_iface, and iscsi_endpoint transport class devices only visible in sysfs under a matching network namespace. The network namespace for all of these objects is tracked in the iscsi_cls_host structure. ---

[RFC 0/9] iSCSI kernel/userspace (netlink and sysfs) issues

2017-08-04 Thread Chris Leech
Hi all, I've been looking at the kernel to iscsid interfaces with an eye towards opening up the possibility for several things that we can't do right now. Like running iscsid in a container, or moving towards a multi-process model with a simplified iscsid process managing each session. There's

[PATCH 7/9] iscsi: rename iscsi_bus_flash_* to iscsi_flash_*

2017-08-04 Thread Chris Leech
cleanups after the bus to class conversion --- drivers/scsi/qla4xxx/ql4_os.c | 52 +- drivers/scsi/scsi_transport_iscsi.c | 102 ++-- include/scsi/scsi_transport_iscsi.h | 40 +++--- 3 files changed, 98 insertions(+), 96 deletions(-)

[PATCH 5/9] iscsi: pass ep to bind_conn

2017-08-04 Thread Chris Leech
Just trying to cleanup some of the repeated endpoint lookups. --- drivers/infiniband/ulp/iser/iscsi_iser.c | 11 +-- drivers/scsi/be2iscsi/be_iscsi.c | 8 +--- drivers/scsi/be2iscsi/be_iscsi.h | 1 + drivers/scsi/bnx2i/bnx2i_iscsi.c | 7 +--

[PATCH 8/9] iscsi: filter flashnode sysfs by net namespace

2017-08-04 Thread Chris Leech
Finished of the net namespace support for flashnode sysfs devices --- drivers/scsi/scsi_transport_iscsi.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index

[PATCH 9/9] iscsi: respond to netlink with unicast when appropriate

2017-08-04 Thread Chris Leech
Instead of always multicasting responses, send a unicast netlink message directed at the correct pid. This will be needed if we ever want to support multiple userspace processes interacting with the kernel over iSCSI netlink simultaneously. Limitations can currently be seen if you attempt to run

[PATCH 1/9] iscsi: create per-net iscsi netlink kernel sockets

2017-08-04 Thread Chris Leech
Prepare iSCSI netlink to operate in multiple namespaces. --- drivers/scsi/scsi_transport_iscsi.c | 67 +++-- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index

[PATCH 6/9] iscsi: convert flashnode devices from bus to class

2017-08-04 Thread Chris Leech
The flashnode session and connection devices should be filtered by net namespace along with the iscsi_host, but we can't do that with a bus device. As these don't use any of the bus matching functionality, they make more sense as a class device anyway. --- drivers/scsi/qla4xxx/ql4_os.c |

[PATCH 3/9] iscsi: make all netlink multicast namespace aware

2017-08-04 Thread Chris Leech
Make use of the per-net netlink sockets. Responses are sent back on the same socket/namespace the request was received on. Async events are reported on the socket/namespace stored in the iscsi_cls_host associated with the event. --- drivers/scsi/scsi_transport_iscsi.c | 92

Re: installing initiator and target

2017-08-04 Thread Chris Leech
On Mon, Jul 31, 2017 at 05:01:14AM +, 'jayshankar nair' via open-iscsi wrote: > Hi, I like to install the iscsi initiator and target on fedora 25. PLease > email me the README file. > Thanks,Jayshankar Use dnf to install the iscsi-initiator-utils and targetcli packages. (targetcli is used