iscsi-target: Expose per endpoint dynamic_sessions attribute
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 7 Mar 2015 04:40:57 +0000 (20:40 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 7 Mar 2015 05:25:13 +0000 (21:25 -0800)
commitd4ee46ff8c8404d63779772e4ddb3553eaca26ae
tree2fba4824b11fb17b09b523ed7c06b9827dfe6d55
parentf8e471f9eb9068bf5ac8c6a04da74329a442f75a
iscsi-target: Expose per endpoint dynamic_sessions attribute

This patch exposes a new ../iscsi/$IQN/$TPGT/dynamic_sessions attribute
to dump the currently active sessions by iSCSI InitiatorName that have
been created with dynamically generated se_node_acls.

This information is useful so that user-space can optionally perform
dynamic -> explicit NodeACL conversion based on $INITIATOR_WWPN.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c