[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
#ifndef TARGET_CORE_ALUA_H
|
|
|
|
#define TARGET_CORE_ALUA_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* INQUIRY response data, TPGS Field
|
|
|
|
*
|
|
|
|
* from spc4r17 section 6.4.2 Table 135
|
|
|
|
*/
|
|
|
|
#define TPGS_NO_ALUA 0x00
|
2013-11-19 16:07:46 +08:00
|
|
|
#define TPGS_IMPLICIT_ALUA 0x10
|
|
|
|
#define TPGS_EXPLICIT_ALUA 0x20
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* ASYMMETRIC ACCESS STATE field
|
|
|
|
*
|
2013-12-17 16:18:49 +08:00
|
|
|
* from spc4r36j section 6.37 Table 307
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
*/
|
2013-11-19 16:07:48 +08:00
|
|
|
#define ALUA_ACCESS_STATE_ACTIVE_OPTIMIZED 0x0
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
#define ALUA_ACCESS_STATE_ACTIVE_NON_OPTIMIZED 0x1
|
|
|
|
#define ALUA_ACCESS_STATE_STANDBY 0x2
|
|
|
|
#define ALUA_ACCESS_STATE_UNAVAILABLE 0x3
|
2013-12-17 16:18:49 +08:00
|
|
|
#define ALUA_ACCESS_STATE_LBA_DEPENDENT 0x4
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
#define ALUA_ACCESS_STATE_OFFLINE 0xe
|
|
|
|
#define ALUA_ACCESS_STATE_TRANSITION 0xf
|
|
|
|
|
2013-11-19 16:07:49 +08:00
|
|
|
/*
|
|
|
|
* from spc4r36j section 6.37 Table 306
|
|
|
|
*/
|
|
|
|
#define ALUA_T_SUP 0x80
|
|
|
|
#define ALUA_O_SUP 0x40
|
|
|
|
#define ALUA_LBD_SUP 0x10
|
|
|
|
#define ALUA_U_SUP 0x08
|
|
|
|
#define ALUA_S_SUP 0x04
|
|
|
|
#define ALUA_AN_SUP 0x02
|
|
|
|
#define ALUA_AO_SUP 0x01
|
|
|
|
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
/*
|
|
|
|
* REPORT_TARGET_PORT_GROUP STATUS CODE
|
|
|
|
*
|
|
|
|
* from spc4r17 section 6.27 Table 246
|
|
|
|
*/
|
|
|
|
#define ALUA_STATUS_NONE 0x00
|
2013-11-19 16:07:46 +08:00
|
|
|
#define ALUA_STATUS_ALTERED_BY_EXPLICIT_STPG 0x01
|
|
|
|
#define ALUA_STATUS_ALTERED_BY_IMPLICIT_ALUA 0x02
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* From spc4r17, Table D.1: ASC and ASCQ Assignement
|
|
|
|
*/
|
|
|
|
#define ASCQ_04H_ALUA_STATE_TRANSITION 0x0a
|
|
|
|
#define ASCQ_04H_ALUA_TG_PT_STANDBY 0x0b
|
|
|
|
#define ASCQ_04H_ALUA_TG_PT_UNAVAILABLE 0x0c
|
|
|
|
#define ASCQ_04H_ALUA_OFFLINE 0x12
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Used as the default for Active/NonOptimized delay (in milliseconds)
|
|
|
|
* This can also be changed via configfs on a per target port group basis..
|
|
|
|
*/
|
|
|
|
#define ALUA_DEFAULT_NONOP_DELAY_MSECS 100
|
|
|
|
#define ALUA_MAX_NONOP_DELAY_MSECS 10000 /* 10 seconds */
|
|
|
|
/*
|
2013-11-19 16:07:46 +08:00
|
|
|
* Used for implicit and explicit ALUA transitional delay, that is disabled
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
* by default, and is intended to be used for debugging client side ALUA code.
|
|
|
|
*/
|
|
|
|
#define ALUA_DEFAULT_TRANS_DELAY_MSECS 0
|
|
|
|
#define ALUA_MAX_TRANS_DELAY_MSECS 30000 /* 30 seconds */
|
2012-05-17 13:02:34 +08:00
|
|
|
/*
|
2013-11-19 16:07:46 +08:00
|
|
|
* Used for the recommended application client implicit transition timeout
|
2012-05-17 13:02:34 +08:00
|
|
|
* in seconds, returned by the REPORT_TARGET_PORT_GROUPS w/ extended header.
|
|
|
|
*/
|
2013-11-19 16:07:46 +08:00
|
|
|
#define ALUA_DEFAULT_IMPLICIT_TRANS_SECS 0
|
|
|
|
#define ALUA_MAX_IMPLICIT_TRANS_SECS 255
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
/*
|
|
|
|
* Used by core_alua_update_tpg_primary_metadata() and
|
|
|
|
* core_alua_update_tpg_secondary_metadata()
|
|
|
|
*/
|
|
|
|
#define ALUA_METADATA_PATH_LEN 512
|
|
|
|
/*
|
|
|
|
* Used by core_alua_update_tpg_secondary_metadata()
|
|
|
|
*/
|
|
|
|
#define ALUA_SECONDARY_METADATA_WWN_LEN 256
|
|
|
|
|
2013-12-17 16:18:44 +08:00
|
|
|
/* Used by core_alua_update_tpg_(primary,secondary)_metadata */
|
|
|
|
#define ALUA_MD_BUF_LEN 1024
|
|
|
|
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
extern struct kmem_cache *t10_alua_lu_gp_cache;
|
|
|
|
extern struct kmem_cache *t10_alua_lu_gp_mem_cache;
|
|
|
|
extern struct kmem_cache *t10_alua_tg_pt_gp_cache;
|
|
|
|
extern struct kmem_cache *t10_alua_tg_pt_gp_mem_cache;
|
2013-12-17 16:18:50 +08:00
|
|
|
extern struct kmem_cache *t10_alua_lba_map_cache;
|
|
|
|
extern struct kmem_cache *t10_alua_lba_map_mem_cache;
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
|
2012-11-07 04:24:09 +08:00
|
|
|
extern sense_reason_t target_emulate_report_target_port_groups(struct se_cmd *);
|
|
|
|
extern sense_reason_t target_emulate_set_target_port_groups(struct se_cmd *);
|
2013-12-17 16:18:49 +08:00
|
|
|
extern sense_reason_t target_emulate_report_referrals(struct se_cmd *);
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
extern int core_alua_check_nonop_delay(struct se_cmd *);
|
|
|
|
extern int core_alua_do_port_transition(struct t10_alua_tg_pt_gp *,
|
|
|
|
struct se_device *, struct se_port *,
|
|
|
|
struct se_node_acl *, int, int);
|
|
|
|
extern char *core_alua_dump_status(int);
|
2013-12-17 16:18:50 +08:00
|
|
|
extern struct t10_alua_lba_map *core_alua_allocate_lba_map(
|
|
|
|
struct list_head *, u64, u64);
|
|
|
|
extern int core_alua_allocate_lba_map_mem(struct t10_alua_lba_map *, int, int);
|
|
|
|
extern void core_alua_free_lba_map(struct list_head *);
|
|
|
|
extern void core_alua_set_lba_map(struct se_device *, struct list_head *,
|
|
|
|
int, int);
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
extern struct t10_alua_lu_gp *core_alua_allocate_lu_gp(const char *, int);
|
|
|
|
extern int core_alua_set_lu_gp_id(struct t10_alua_lu_gp *, u16);
|
|
|
|
extern void core_alua_free_lu_gp(struct t10_alua_lu_gp *);
|
|
|
|
extern void core_alua_free_lu_gp_mem(struct se_device *);
|
|
|
|
extern struct t10_alua_lu_gp *core_alua_get_lu_gp_by_name(const char *);
|
|
|
|
extern void core_alua_put_lu_gp_from_name(struct t10_alua_lu_gp *);
|
|
|
|
extern void __core_alua_attach_lu_gp_mem(struct t10_alua_lu_gp_member *,
|
|
|
|
struct t10_alua_lu_gp *);
|
|
|
|
extern void __core_alua_drop_lu_gp_mem(struct t10_alua_lu_gp_member *,
|
|
|
|
struct t10_alua_lu_gp *);
|
|
|
|
extern void core_alua_drop_lu_gp_dev(struct se_device *);
|
|
|
|
extern struct t10_alua_tg_pt_gp *core_alua_allocate_tg_pt_gp(
|
2012-10-08 12:03:19 +08:00
|
|
|
struct se_device *, const char *, int);
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
extern int core_alua_set_tg_pt_gp_id(struct t10_alua_tg_pt_gp *, u16);
|
|
|
|
extern struct t10_alua_tg_pt_gp_member *core_alua_allocate_tg_pt_gp_mem(
|
|
|
|
struct se_port *);
|
|
|
|
extern void core_alua_free_tg_pt_gp(struct t10_alua_tg_pt_gp *);
|
|
|
|
extern void core_alua_free_tg_pt_gp_mem(struct se_port *);
|
|
|
|
extern void __core_alua_attach_tg_pt_gp_mem(struct t10_alua_tg_pt_gp_member *,
|
|
|
|
struct t10_alua_tg_pt_gp *);
|
|
|
|
extern ssize_t core_alua_show_tg_pt_gp_info(struct se_port *, char *);
|
|
|
|
extern ssize_t core_alua_store_tg_pt_gp_info(struct se_port *, const char *,
|
|
|
|
size_t);
|
|
|
|
extern ssize_t core_alua_show_access_type(struct t10_alua_tg_pt_gp *, char *);
|
|
|
|
extern ssize_t core_alua_store_access_type(struct t10_alua_tg_pt_gp *,
|
|
|
|
const char *, size_t);
|
|
|
|
extern ssize_t core_alua_show_nonop_delay_msecs(struct t10_alua_tg_pt_gp *,
|
|
|
|
char *);
|
|
|
|
extern ssize_t core_alua_store_nonop_delay_msecs(struct t10_alua_tg_pt_gp *,
|
|
|
|
const char *, size_t);
|
|
|
|
extern ssize_t core_alua_show_trans_delay_msecs(struct t10_alua_tg_pt_gp *,
|
|
|
|
char *);
|
|
|
|
extern ssize_t core_alua_store_trans_delay_msecs(struct t10_alua_tg_pt_gp *,
|
|
|
|
const char *, size_t);
|
2013-11-19 16:07:46 +08:00
|
|
|
extern ssize_t core_alua_show_implicit_trans_secs(struct t10_alua_tg_pt_gp *,
|
2012-05-17 13:02:34 +08:00
|
|
|
char *);
|
2013-11-19 16:07:46 +08:00
|
|
|
extern ssize_t core_alua_store_implicit_trans_secs(struct t10_alua_tg_pt_gp *,
|
2012-05-17 13:02:34 +08:00
|
|
|
const char *, size_t);
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
extern ssize_t core_alua_show_preferred_bit(struct t10_alua_tg_pt_gp *,
|
|
|
|
char *);
|
|
|
|
extern ssize_t core_alua_store_preferred_bit(struct t10_alua_tg_pt_gp *,
|
|
|
|
const char *, size_t);
|
|
|
|
extern ssize_t core_alua_show_offline_bit(struct se_lun *, char *);
|
|
|
|
extern ssize_t core_alua_store_offline_bit(struct se_lun *, const char *,
|
|
|
|
size_t);
|
|
|
|
extern ssize_t core_alua_show_secondary_status(struct se_lun *, char *);
|
|
|
|
extern ssize_t core_alua_store_secondary_status(struct se_lun *,
|
|
|
|
const char *, size_t);
|
|
|
|
extern ssize_t core_alua_show_secondary_write_metadata(struct se_lun *,
|
|
|
|
char *);
|
|
|
|
extern ssize_t core_alua_store_secondary_write_metadata(struct se_lun *,
|
|
|
|
const char *, size_t);
|
2012-10-08 12:03:19 +08:00
|
|
|
extern int core_setup_alua(struct se_device *);
|
2012-11-07 04:24:09 +08:00
|
|
|
extern sense_reason_t target_alua_state_check(struct se_cmd *cmd);
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-18 03:11:26 +08:00
|
|
|
|
|
|
|
#endif /* TARGET_CORE_ALUA_H */
|