Skip to content

Generic target fabric configfs NodeACL and MappedLUN logic

Nicholas A. Bellinger linux-fsdevel linux-scsi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4: Add generic tfc_discovery_cit to target_core_register_fabric()drivers/target/target_core_configfs.c include/target/target_core_configfs.h include/target/target_core_fabric_configfs.h+32 -90 replies
2/4: Add generic NodeACL and MappedLUN configfs logicdrivers/target/target_core_fabric_configfs.c drivers/target/target_core_tpg.c include/target/target_core_base.h +4 more+459 -450 replies
3/4: Convert NodeACl and MappedLUNs to use generic configfs struct config_item_typesdrivers/target/lio-target/iscsi_auth_kernel.h drivers/target/lio-target/iscsi_target_configfs.c drivers/target/lio-target/iscsi_target_core.h +3 more+216 -8150 replies
4/4: Update virtual SAS NodeACL allocation handling for v4.0drivers/target/tcm_loop/tcm_loop_configfs.c drivers/target/tcm_loop/tcm_loop_core.h drivers/target/tcm_loop/tcm_loop_fabric.c +1 more+8 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Generic target fabric configfs NodeACL and MappedLUN logic

From: Nicholas Bellinger <[email protected]>

Greetings again folks,

This is the second patch series to lio-core-2.6.git/lio-4.0 for enabling a generic target fabric module independent configfs infrastructure. It contains the changes necessary to use generic struct config_item_types in target_core_fabric_configfs.c for reproducing existing v3.x configfs layout of NodeACL base, NodeACL attribute, NodeACL parameters, NodeACL authentication and MappedLUN groups.

As with the previous patch series for generic WWN, TPG and LUN struct config_item_types, the new NodeACL and MappedLUN 'cits' have been added to struct target_fabric_configfs_template along with matching struct config_group_operations and struct config_item_operation handlers living in target_core_fabric_configfs.c As before, fabric modules are allowed to hang fabric dependent attributes from these generic cits using the CONFIGFS_EATTR() style macros in include/target/target_core_fabric_configfs.c:TF_NACL_*() for existing attribute code.

With these second series of patches, the 4.0 generic fabric configfs code is now able to reproduce the entire existing configfs layout and functionality in /sys/kernel/config/target/iscsi for the LIO-Target v3.x fabric module using the existing fabric dependent attributes.. Which means that existing v3.x userspace code should be working as expected with the v4.0 code..!

As before, any comments, suggestions, questions are welcome,

Thanks!

Nicholas Bellinger (4):
[TCM/ConfigFS]: Add generic tfc_discovery_cit to
target_core_register_fabric()
[TCM/ConfigFS]: Add generic NodeACL and MappedLUN configfs logic [LIO-Target/ConfigFS]: Convert NodeACl and MappedLUNs to use generic
configfs struct config_item_types
[TCM_Loop]: Update virtual SAS NodeACL allocation handling for v4.0

 drivers/target/lio-target/iscsi_auth_kernel.h      |    5 +-
 drivers/target/lio-target/iscsi_target_configfs.c  |  956 ++++----------------
 drivers/target/lio-target/iscsi_target_core.h      |    6 +-
 .../target/lio-target/iscsi_target_nodeattrib.c    |    2 +-
 drivers/target/lio-target/iscsi_target_tpg.c       |   58 +-
 drivers/target/lio-target/iscsi_target_tpg.h       |    4 +-
 drivers/target/target_core_configfs.c              |   25 +-
 drivers/target/target_core_fabric_configfs.c       |  381 ++++++++-
 drivers/target/target_core_tpg.c                   |   54 +-
 drivers/target/tcm_loop/tcm_loop_configfs.c        |    5 +-
 drivers/target/tcm_loop/tcm_loop_core.h            |    2 +-
 drivers/target/tcm_loop/tcm_loop_fabric.c          |   10 +-
 drivers/target/tcm_loop/tcm_loop_fabric.h          |    3 +-
 include/target/target_core_base.h                  |    4 +-
 include/target/target_core_configfs.h              |   11 +-
 include/target/target_core_fabric_configfs.h       |   56 ++
 include/target/target_core_fabric_ops.h            |    8 +-
 include/target/target_core_tpg.h                   |    6 +-
 18 files changed, 715 insertions(+), 881 deletions(-)