iscsi-target: Implement demo_mode_discovery logic
authorThomas Glanzmann <thomas@glanzmann.de>
Mon, 7 Oct 2013 21:13:46 +0000 (23:13 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 04:30:12 +0000 (21:30 -0700)
commit2dd1d53fe004cd3b1e93e96508cfe637e6e31ef5
tree0b968aa8771c078010cd7bd94834fcf02968bf42
parentb3fde035714b83ef7ddbbd5a520a2150d990349b
iscsi-target: Implement demo_mode_discovery logic

If demo_mode_discovery=0 and generate_node_acls=0 (demo mode dislabed) do
not return TargetName+TargetAddress unless a NodeACL exists.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c