]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit506cc1d9539a8bba0c1179153a014fd27c8d789e
tree6cbe042e2625506c896510bac8b480e44ea482dd
parentc68cad49358c970874a0cb49e81f4fe77167a091
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