]> git.baikalelectronics.ru Git - kernel.git/commit
target/iscsi_target: Add NodeACL tags for initiator group support
authorAndy Grover <agrover@redhat.com>
Wed, 12 Dec 2012 00:30:53 +0000 (16:30 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 13 Dec 2012 22:18:09 +0000 (14:18 -0800)
commit0cf2cb3471959d405da025015c529b6fd74f993a
treefe58b9e0bb253699f22b32412f1e0d4a42865206
parent618cf281c394c9249d0cc3794b2e3046765108f3
target/iscsi_target: Add NodeACL tags for initiator group support

Thanks for reviews, looking a lot better.

---- 8< ----

Initiator access config could be easier. The way other storage vendors
have addressed this is to support initiator groups: the admin adds
initiator WWNs to the group, and then LUN permissions can be granted for
the entire group at once.

Instead of changing ktarget's configfs interface, this patch keeps
the configfs interface per-initiator-wwn and just adds a 'tag' field
for each. This should be enough for user tools like targetcli to group
initiator ACLs and sync their configurations.

acl_tag is not used internally, but needs to be kept in configfs so that
all user tools can avoid dependencies on each other.

Code tested to work, although userspace pieces still to be implemented.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/target_core_tpg.c
include/target/target_core_base.h
include/target/target_core_fabric.h