diff options
author | Hannes Reinecke <hare@suse.de> | 2013-10-16 09:12:53 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-10-17 00:41:26 +0200 |
commit | fb2b2844743bc3d84ce1033167210e5fe3963455 (patch) | |
tree | 1b201f28602ef120a018c008aa98149bedd0adc6 /drivers/target/loopback/tcm_loop.h | |
parent | tcm_loop: Check for valid hba in tcm_loop_drop_nexus() (diff) | |
download | linux-fb2b2844743bc3d84ce1033167210e5fe3963455.tar.xz linux-fb2b2844743bc3d84ce1033167210e5fe3963455.zip |
tcm_loop: Implement transport offline
Add attribute 'transport_status' to simulate link failure.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback/tcm_loop.h')
-rw-r--r-- | drivers/target/loopback/tcm_loop.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h index dd7a84ee78e1..56528f7dafae 100644 --- a/drivers/target/loopback/tcm_loop.h +++ b/drivers/target/loopback/tcm_loop.h @@ -40,8 +40,12 @@ struct tcm_loop_nacl { struct se_node_acl se_node_acl; }; +#define TCM_TRANSPORT_ONLINE 0 +#define TCM_TRANSPORT_OFFLINE 1 + struct tcm_loop_tpg { unsigned short tl_tpgt; + unsigned short tl_transport_status; atomic_t tl_tpg_port_count; struct se_portal_group tl_se_tpg; struct tcm_loop_hba *tl_hba; |