Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
target_core_alua.h File Reference

Go to the source code of this file.

Macros

#define TPGS_NO_ALUA   0x00
 
#define TPGS_IMPLICT_ALUA   0x10
 
#define TPGS_EXPLICT_ALUA   0x20
 
#define ALUA_ACCESS_STATE_ACTIVE_OPTMIZED   0x0
 
#define ALUA_ACCESS_STATE_ACTIVE_NON_OPTIMIZED   0x1
 
#define ALUA_ACCESS_STATE_STANDBY   0x2
 
#define ALUA_ACCESS_STATE_UNAVAILABLE   0x3
 
#define ALUA_ACCESS_STATE_OFFLINE   0xe
 
#define ALUA_ACCESS_STATE_TRANSITION   0xf
 
#define ALUA_STATUS_NONE   0x00
 
#define ALUA_STATUS_ALTERED_BY_EXPLICT_STPG   0x01
 
#define ALUA_STATUS_ALTERED_BY_IMPLICT_ALUA   0x02
 
#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
 
#define ALUA_DEFAULT_NONOP_DELAY_MSECS   100
 
#define ALUA_MAX_NONOP_DELAY_MSECS   10000 /* 10 seconds */
 
#define ALUA_DEFAULT_TRANS_DELAY_MSECS   0
 
#define ALUA_MAX_TRANS_DELAY_MSECS   30000 /* 30 seconds */
 
#define ALUA_DEFAULT_IMPLICT_TRANS_SECS   0
 
#define ALUA_MAX_IMPLICT_TRANS_SECS   255
 
#define ALUA_METADATA_PATH_LEN   512
 
#define ALUA_SECONDARY_METADATA_WWN_LEN   256
 

Functions

int target_emulate_report_target_port_groups (struct se_cmd *)
 
int target_emulate_set_target_port_groups (struct se_cmd *)
 
int core_alua_check_nonop_delay (struct se_cmd *)
 
int core_alua_do_port_transition (struct t10_alua_tg_pt_gp *, struct se_device *, struct se_port *, struct se_node_acl *, int, int)
 
charcore_alua_dump_status (int)
 
struct t10_alua_lu_gpcore_alua_allocate_lu_gp (const char *, int)
 
int core_alua_set_lu_gp_id (struct t10_alua_lu_gp *, u16)
 
void core_alua_free_lu_gp (struct t10_alua_lu_gp *)
 
void core_alua_free_lu_gp_mem (struct se_device *)
 
struct t10_alua_lu_gpcore_alua_get_lu_gp_by_name (const char *)
 
void core_alua_put_lu_gp_from_name (struct t10_alua_lu_gp *)
 
void __core_alua_attach_lu_gp_mem (struct t10_alua_lu_gp_member *, struct t10_alua_lu_gp *)
 
void __core_alua_drop_lu_gp_mem (struct t10_alua_lu_gp_member *, struct t10_alua_lu_gp *)
 
void core_alua_drop_lu_gp_dev (struct se_device *)
 
struct t10_alua_tg_pt_gpcore_alua_allocate_tg_pt_gp (struct se_subsystem_dev *, const char *, int)
 
int core_alua_set_tg_pt_gp_id (struct t10_alua_tg_pt_gp *, u16)
 
struct t10_alua_tg_pt_gp_membercore_alua_allocate_tg_pt_gp_mem (struct se_port *)
 
void core_alua_free_tg_pt_gp (struct t10_alua_tg_pt_gp *)
 
void core_alua_free_tg_pt_gp_mem (struct se_port *)
 
void __core_alua_attach_tg_pt_gp_mem (struct t10_alua_tg_pt_gp_member *, struct t10_alua_tg_pt_gp *)
 
ssize_t core_alua_show_tg_pt_gp_info (struct se_port *, char *)
 
ssize_t core_alua_store_tg_pt_gp_info (struct se_port *, const char *, size_t)
 
ssize_t core_alua_show_access_type (struct t10_alua_tg_pt_gp *, char *)
 
ssize_t core_alua_store_access_type (struct t10_alua_tg_pt_gp *, const char *, size_t)
 
ssize_t core_alua_show_nonop_delay_msecs (struct t10_alua_tg_pt_gp *, char *)
 
ssize_t core_alua_store_nonop_delay_msecs (struct t10_alua_tg_pt_gp *, const char *, size_t)
 
ssize_t core_alua_show_trans_delay_msecs (struct t10_alua_tg_pt_gp *, char *)
 
ssize_t core_alua_store_trans_delay_msecs (struct t10_alua_tg_pt_gp *, const char *, size_t)
 
ssize_t core_alua_show_implict_trans_secs (struct t10_alua_tg_pt_gp *, char *)
 
ssize_t core_alua_store_implict_trans_secs (struct t10_alua_tg_pt_gp *, const char *, size_t)
 
ssize_t core_alua_show_preferred_bit (struct t10_alua_tg_pt_gp *, char *)
 
ssize_t core_alua_store_preferred_bit (struct t10_alua_tg_pt_gp *, const char *, size_t)
 
ssize_t core_alua_show_offline_bit (struct se_lun *, char *)
 
ssize_t core_alua_store_offline_bit (struct se_lun *, const char *, size_t)
 
ssize_t core_alua_show_secondary_status (struct se_lun *, char *)
 
ssize_t core_alua_store_secondary_status (struct se_lun *, const char *, size_t)
 
ssize_t core_alua_show_secondary_write_metadata (struct se_lun *, char *)
 
ssize_t core_alua_store_secondary_write_metadata (struct se_lun *, const char *, size_t)
 
int core_setup_alua (struct se_device *, int)
 

Variables

struct kmem_cachet10_alua_lu_gp_cache
 
struct kmem_cachet10_alua_lu_gp_mem_cache
 
struct kmem_cachet10_alua_tg_pt_gp_cache
 
struct kmem_cachet10_alua_tg_pt_gp_mem_cache
 

Macro Definition Documentation

#define ALUA_ACCESS_STATE_ACTIVE_NON_OPTIMIZED   0x1

Definition at line 19 of file target_core_alua.h.

#define ALUA_ACCESS_STATE_ACTIVE_OPTMIZED   0x0

Definition at line 18 of file target_core_alua.h.

#define ALUA_ACCESS_STATE_OFFLINE   0xe

Definition at line 22 of file target_core_alua.h.

#define ALUA_ACCESS_STATE_STANDBY   0x2

Definition at line 20 of file target_core_alua.h.

#define ALUA_ACCESS_STATE_TRANSITION   0xf

Definition at line 23 of file target_core_alua.h.

#define ALUA_ACCESS_STATE_UNAVAILABLE   0x3

Definition at line 21 of file target_core_alua.h.

#define ALUA_DEFAULT_IMPLICT_TRANS_SECS   0

Definition at line 58 of file target_core_alua.h.

#define ALUA_DEFAULT_NONOP_DELAY_MSECS   100

Definition at line 46 of file target_core_alua.h.

#define ALUA_DEFAULT_TRANS_DELAY_MSECS   0

Definition at line 52 of file target_core_alua.h.

#define ALUA_MAX_IMPLICT_TRANS_SECS   255

Definition at line 59 of file target_core_alua.h.

#define ALUA_MAX_NONOP_DELAY_MSECS   10000 /* 10 seconds */

Definition at line 47 of file target_core_alua.h.

#define ALUA_MAX_TRANS_DELAY_MSECS   30000 /* 30 seconds */

Definition at line 53 of file target_core_alua.h.

#define ALUA_METADATA_PATH_LEN   512

Definition at line 64 of file target_core_alua.h.

#define ALUA_SECONDARY_METADATA_WWN_LEN   256

Definition at line 68 of file target_core_alua.h.

#define ALUA_STATUS_ALTERED_BY_EXPLICT_STPG   0x01

Definition at line 31 of file target_core_alua.h.

#define ALUA_STATUS_ALTERED_BY_IMPLICT_ALUA   0x02

Definition at line 32 of file target_core_alua.h.

#define ALUA_STATUS_NONE   0x00

Definition at line 30 of file target_core_alua.h.

#define ASCQ_04H_ALUA_OFFLINE   0x12

Definition at line 40 of file target_core_alua.h.

#define ASCQ_04H_ALUA_STATE_TRANSITION   0x0a

Definition at line 37 of file target_core_alua.h.

#define ASCQ_04H_ALUA_TG_PT_STANDBY   0x0b

Definition at line 38 of file target_core_alua.h.

#define ASCQ_04H_ALUA_TG_PT_UNAVAILABLE   0x0c

Definition at line 39 of file target_core_alua.h.

#define TPGS_EXPLICT_ALUA   0x20

Definition at line 11 of file target_core_alua.h.

#define TPGS_IMPLICT_ALUA   0x10

Definition at line 10 of file target_core_alua.h.

#define TPGS_NO_ALUA   0x00

Definition at line 9 of file target_core_alua.h.

Function Documentation

void __core_alua_attach_lu_gp_mem ( struct t10_alua_lu_gp_member ,
struct t10_alua_lu_gp  
)

Definition at line 1334 of file target_core_alua.c.

void __core_alua_attach_tg_pt_gp_mem ( struct t10_alua_tg_pt_gp_member ,
struct t10_alua_tg_pt_gp  
)

Definition at line 1613 of file target_core_alua.c.

void __core_alua_drop_lu_gp_mem ( struct t10_alua_lu_gp_member ,
struct t10_alua_lu_gp  
)

Definition at line 1349 of file target_core_alua.c.

struct t10_alua_lu_gp* core_alua_allocate_lu_gp ( const char ,
int   
)
read

Definition at line 1120 of file target_core_alua.c.

struct t10_alua_tg_pt_gp* core_alua_allocate_tg_pt_gp ( struct se_subsystem_dev ,
const char ,
int   
)
read

Definition at line 1361 of file target_core_alua.c.

struct t10_alua_tg_pt_gp_member* core_alua_allocate_tg_pt_gp_mem ( struct se_port )
read

Definition at line 1459 of file target_core_alua.c.

int core_alua_check_nonop_delay ( struct se_cmd )

Definition at line 690 of file target_core_alua.c.

int core_alua_do_port_transition ( struct t10_alua_tg_pt_gp ,
struct se_device ,
struct se_port ,
struct se_node_acl ,
int  ,
int   
)

Definition at line 892 of file target_core_alua.c.

void core_alua_drop_lu_gp_dev ( struct se_device )
char* core_alua_dump_status ( int  )

Definition at line 670 of file target_core_alua.c.

void core_alua_free_lu_gp ( struct t10_alua_lu_gp )

Definition at line 1210 of file target_core_alua.c.

void core_alua_free_lu_gp_mem ( struct se_device )

Definition at line 1269 of file target_core_alua.c.

void core_alua_free_tg_pt_gp ( struct t10_alua_tg_pt_gp )

Definition at line 1480 of file target_core_alua.c.

void core_alua_free_tg_pt_gp_mem ( struct se_port )

Definition at line 1542 of file target_core_alua.c.

struct t10_alua_lu_gp* core_alua_get_lu_gp_by_name ( const char )
read

Definition at line 1303 of file target_core_alua.c.

void core_alua_put_lu_gp_from_name ( struct t10_alua_lu_gp )

Definition at line 1324 of file target_core_alua.c.

int core_alua_set_lu_gp_id ( struct t10_alua_lu_gp ,
u16   
)

Definition at line 1143 of file target_core_alua.c.

int core_alua_set_tg_pt_gp_id ( struct t10_alua_tg_pt_gp ,
u16   
)

Definition at line 1408 of file target_core_alua.c.

ssize_t core_alua_show_access_type ( struct t10_alua_tg_pt_gp ,
char  
)

Definition at line 1781 of file target_core_alua.c.

ssize_t core_alua_show_implict_trans_secs ( struct t10_alua_tg_pt_gp ,
char  
)

Definition at line 1889 of file target_core_alua.c.

ssize_t core_alua_show_nonop_delay_msecs ( struct t10_alua_tg_pt_gp ,
char  
)

Definition at line 1827 of file target_core_alua.c.

ssize_t core_alua_show_offline_bit ( struct se_lun ,
char  
)

Definition at line 1949 of file target_core_alua.c.

ssize_t core_alua_show_preferred_bit ( struct t10_alua_tg_pt_gp ,
char  
)

Definition at line 1920 of file target_core_alua.c.

ssize_t core_alua_show_secondary_status ( struct se_lun ,
char  
)

Definition at line 1994 of file target_core_alua.c.

ssize_t core_alua_show_secondary_write_metadata ( struct se_lun ,
char  
)

Definition at line 2026 of file target_core_alua.c.

ssize_t core_alua_show_tg_pt_gp_info ( struct se_port ,
char  
)

Definition at line 1641 of file target_core_alua.c.

ssize_t core_alua_show_trans_delay_msecs ( struct t10_alua_tg_pt_gp ,
char  
)

Definition at line 1858 of file target_core_alua.c.

ssize_t core_alua_store_access_type ( struct t10_alua_tg_pt_gp ,
const char ,
size_t   
)

Definition at line 1796 of file target_core_alua.c.

ssize_t core_alua_store_implict_trans_secs ( struct t10_alua_tg_pt_gp ,
const char ,
size_t   
)

Definition at line 1896 of file target_core_alua.c.

ssize_t core_alua_store_nonop_delay_msecs ( struct t10_alua_tg_pt_gp ,
const char ,
size_t   
)

Definition at line 1834 of file target_core_alua.c.

ssize_t core_alua_store_offline_bit ( struct se_lun ,
const char ,
size_t   
)

Definition at line 1958 of file target_core_alua.c.

ssize_t core_alua_store_preferred_bit ( struct t10_alua_tg_pt_gp ,
const char ,
size_t   
)

Definition at line 1927 of file target_core_alua.c.

ssize_t core_alua_store_secondary_status ( struct se_lun ,
const char ,
size_t   
)

Definition at line 2001 of file target_core_alua.c.

ssize_t core_alua_store_secondary_write_metadata ( struct se_lun ,
const char ,
size_t   
)

Definition at line 2034 of file target_core_alua.c.

ssize_t core_alua_store_tg_pt_gp_info ( struct se_port ,
const char ,
size_t   
)

Definition at line 1679 of file target_core_alua.c.

ssize_t core_alua_store_trans_delay_msecs ( struct t10_alua_tg_pt_gp ,
const char ,
size_t   
)

Definition at line 1865 of file target_core_alua.c.

int core_setup_alua ( struct se_device ,
int   
)

Definition at line 2057 of file target_core_alua.c.

int target_emulate_report_target_port_groups ( struct se_cmd )

Definition at line 62 of file target_core_alua.c.

int target_emulate_set_target_port_groups ( struct se_cmd )

Definition at line 203 of file target_core_alua.c.

Variable Documentation

struct kmem_cache* t10_alua_lu_gp_cache

Definition at line 62 of file target_core_transport.c.

struct kmem_cache* t10_alua_lu_gp_mem_cache

Definition at line 63 of file target_core_transport.c.

struct kmem_cache* t10_alua_tg_pt_gp_cache

Definition at line 64 of file target_core_transport.c.

struct kmem_cache* t10_alua_tg_pt_gp_mem_cache

Definition at line 65 of file target_core_transport.c.