iscsi-target: Add tpg_enabled_sendtargets for disabled discovery
authorDavid Disseldorp <ddiss@suse.de>
Sat, 1 Aug 2015 07:10:12 +0000 (00:10 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 3 Aug 2015 04:59:59 +0000 (21:59 -0700)
commita6415cddc4e6e1675a5648e7785aef716980c90c
tree6cbe042e2625506c896510bac8b480e44ea482dd
parent9d8c94e48a5faafae1e52bec18b8d99211b2ccd4
iscsi-target: Add tpg_enabled_sendtargets for disabled discovery

This patch adds a new tpg_enabled_sendtargets configfs attribute
to allow in-band sendtargets discovery information to include
target-portal-groups (TPGs) in !TPG_STATE_ACTIVE state.

This functionality is useful for clustered iSCSI targets, where
TPGTs handled on remote cluster nodes should be advertised in
the SendTargets response.

By default, this new attribute retains the default behaviour of
existing code which to ignore portal-groups in !TPG_STATE_ACTIVE
state.

Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_tpg.c
drivers/target/iscsi/iscsi_target_tpg.h
include/target/iscsi/iscsi_target_core.h