forked from Minki/linux
c66ac9db8d
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>
36 lines
1.5 KiB
C
36 lines
1.5 KiB
C
#ifndef TARGET_CORE_TPG_H
|
|
#define TARGET_CORE_TPG_H
|
|
|
|
extern struct se_node_acl *__core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
|
|
const char *);
|
|
extern struct se_node_acl *core_tpg_get_initiator_node_acl(struct se_portal_group *tpg,
|
|
unsigned char *);
|
|
extern void core_tpg_add_node_to_devs(struct se_node_acl *,
|
|
struct se_portal_group *);
|
|
extern struct se_node_acl *core_tpg_check_initiator_node_acl(
|
|
struct se_portal_group *,
|
|
unsigned char *);
|
|
extern void core_tpg_wait_for_nacl_pr_ref(struct se_node_acl *);
|
|
extern void core_tpg_wait_for_mib_ref(struct se_node_acl *);
|
|
extern void core_tpg_clear_object_luns(struct se_portal_group *);
|
|
extern struct se_node_acl *core_tpg_add_initiator_node_acl(
|
|
struct se_portal_group *,
|
|
struct se_node_acl *,
|
|
const char *, u32);
|
|
extern int core_tpg_del_initiator_node_acl(struct se_portal_group *,
|
|
struct se_node_acl *, int);
|
|
extern int core_tpg_set_initiator_node_queue_depth(struct se_portal_group *,
|
|
unsigned char *, u32, int);
|
|
extern int core_tpg_register(struct target_core_fabric_ops *,
|
|
struct se_wwn *,
|
|
struct se_portal_group *, void *,
|
|
int);
|
|
extern int core_tpg_deregister(struct se_portal_group *);
|
|
extern struct se_lun *core_tpg_pre_addlun(struct se_portal_group *, u32);
|
|
extern int core_tpg_post_addlun(struct se_portal_group *, struct se_lun *, u32,
|
|
void *);
|
|
extern struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32, int *);
|
|
extern int core_tpg_post_dellun(struct se_portal_group *, struct se_lun *);
|
|
|
|
#endif /* TARGET_CORE_TPG_H */
|