Added support for iSCSI Initiator Node attributes under /sys/kernel/config/target/iscsi/$IQN/$TPGT/acls/$INITIATOR_IQN/attrib: <SNIP> |-- iscsi | |-- iqn.2003-01.org.linux-iscsi.target.i686:sn.e475ed6fcdd0 | | `-- tpgt_1 | | |-- acls | | | |-- iqn.1993-08.org.debian:01:2dadf92d0ef | | | | |-- attrib | | | | | |-- dataout_timeout | | | | | |-- dataout_timeout_retries | | | | | |-- default_erl | | | | | |-- nopin_response_timeout | | | | | |-- nopin_timeout | | | | | |-- random_datain_pdu_offsets | | | | | |-- random_datain_seq_offsets | | | | | `-- random_r2t_offsets <SNIP> These iSCSI initiator node attributes descriptions are currently defined in the target-ctl manpage as 'setnodeattrib'. There are upper hardcoded limits for non-BOOLEAN values in drivers/lio-core/iscsi_target_core.h Also, you will notice this patch is the first one that uses the CONFIGFS_ATTR_STRUCT(), __CONFIGFS_ATTR() and CONFIGFS_ATTR_OPS() from include/linux/configfs.h for redunced time to develop, less code, etc. I will be converting some of the existing ones (namely the TPG attribute patch from today) to use these provided macros. Signed-off-by: Nicholas A. Bellinger --- drivers/lio-core/iscsi_target_configfs.c | 167 ++++++++++++++++++++++++++-- drivers/lio-core/iscsi_target_core.h | 2 + drivers/lio-core/iscsi_target_ioctl.c | 4 + drivers/lio-core/iscsi_target_nodeattrib.c | 118 ++++++-------------- drivers/lio-core/iscsi_target_nodeattrib.h | 9 ++- drivers/lio-core/iscsi_target_tpg.c | 3 +- drivers/lio-core/iscsi_target_tpg.h | 2 +- 7 files changed, 210 insertions(+), 95 deletions(-) http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git;a=commit;h=ceae11470d537dbaf10575f3238bb4fce81333ef
Attachment:
0001-LIO-Target-ConfigFS-Added-support-for-iSCSI-Initi.patch
Description: application/mbox