Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
scsi_dh_alua.c File Reference
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <scsi/scsi.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_dh.h>

Go to the source code of this file.

Data Structures

struct  alua_dh_data
 

Macros

#define ALUA_DH_NAME   "alua"
 
#define ALUA_DH_VER   "1.3"
 
#define TPGS_STATE_OPTIMIZED   0x0
 
#define TPGS_STATE_NONOPTIMIZED   0x1
 
#define TPGS_STATE_STANDBY   0x2
 
#define TPGS_STATE_UNAVAILABLE   0x3
 
#define TPGS_STATE_LBA_DEPENDENT   0x4
 
#define TPGS_STATE_OFFLINE   0xe
 
#define TPGS_STATE_TRANSITIONING   0xf
 
#define TPGS_SUPPORT_NONE   0x00
 
#define TPGS_SUPPORT_OPTIMIZED   0x01
 
#define TPGS_SUPPORT_NONOPTIMIZED   0x02
 
#define TPGS_SUPPORT_STANDBY   0x04
 
#define TPGS_SUPPORT_UNAVAILABLE   0x08
 
#define TPGS_SUPPORT_LBA_DEPENDENT   0x10
 
#define TPGS_SUPPORT_OFFLINE   0x40
 
#define TPGS_SUPPORT_TRANSITION   0x80
 
#define RTPG_FMT_MASK   0x70
 
#define RTPG_FMT_EXT_HDR   0x10
 
#define TPGS_MODE_UNINITIALIZED   -1
 
#define TPGS_MODE_NONE   0x0
 
#define TPGS_MODE_IMPLICIT   0x1
 
#define TPGS_MODE_EXPLICIT   0x2
 
#define ALUA_INQUIRY_SIZE   36
 
#define ALUA_FAILOVER_TIMEOUT   60
 
#define ALUA_FAILOVER_RETRIES   5
 
#define ALUA_OPTIMIZE_STPG   1
 
#define ALUA_POLICY_SWITCH_CURRENT   0
 
#define ALUA_POLICY_SWITCH_ALL   1
 

Functions

 module_init (alua_init)
 
 module_exit (alua_exit)
 
 MODULE_DESCRIPTION ("DM Multipath ALUA support")
 
 MODULE_AUTHOR ("Hannes Reinecke <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (ALUA_DH_VER)
 

Macro Definition Documentation

#define ALUA_DH_NAME   "alua"

Definition at line 29 of file scsi_dh_alua.c.

#define ALUA_DH_VER   "1.3"

Definition at line 30 of file scsi_dh_alua.c.

#define ALUA_FAILOVER_RETRIES   5

Definition at line 59 of file scsi_dh_alua.c.

#define ALUA_FAILOVER_TIMEOUT   60

Definition at line 58 of file scsi_dh_alua.c.

#define ALUA_INQUIRY_SIZE   36

Definition at line 57 of file scsi_dh_alua.c.

#define ALUA_OPTIMIZE_STPG   1

Definition at line 62 of file scsi_dh_alua.c.

#define ALUA_POLICY_SWITCH_ALL   1

Definition at line 83 of file scsi_dh_alua.c.

#define ALUA_POLICY_SWITCH_CURRENT   0

Definition at line 82 of file scsi_dh_alua.c.

#define RTPG_FMT_EXT_HDR   0x10

Definition at line 50 of file scsi_dh_alua.c.

#define RTPG_FMT_MASK   0x70

Definition at line 49 of file scsi_dh_alua.c.

#define TPGS_MODE_EXPLICIT   0x2

Definition at line 55 of file scsi_dh_alua.c.

#define TPGS_MODE_IMPLICIT   0x1

Definition at line 54 of file scsi_dh_alua.c.

#define TPGS_MODE_NONE   0x0

Definition at line 53 of file scsi_dh_alua.c.

#define TPGS_MODE_UNINITIALIZED   -1

Definition at line 52 of file scsi_dh_alua.c.

#define TPGS_STATE_LBA_DEPENDENT   0x4

Definition at line 36 of file scsi_dh_alua.c.

#define TPGS_STATE_NONOPTIMIZED   0x1

Definition at line 33 of file scsi_dh_alua.c.

#define TPGS_STATE_OFFLINE   0xe

Definition at line 37 of file scsi_dh_alua.c.

#define TPGS_STATE_OPTIMIZED   0x0

Definition at line 32 of file scsi_dh_alua.c.

#define TPGS_STATE_STANDBY   0x2

Definition at line 34 of file scsi_dh_alua.c.

#define TPGS_STATE_TRANSITIONING   0xf

Definition at line 38 of file scsi_dh_alua.c.

#define TPGS_STATE_UNAVAILABLE   0x3

Definition at line 35 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_LBA_DEPENDENT   0x10

Definition at line 45 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_NONE   0x00

Definition at line 40 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_NONOPTIMIZED   0x02

Definition at line 42 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_OFFLINE   0x40

Definition at line 46 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_OPTIMIZED   0x01

Definition at line 41 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_STANDBY   0x04

Definition at line 43 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_TRANSITION   0x80

Definition at line 47 of file scsi_dh_alua.c.

#define TPGS_SUPPORT_UNAVAILABLE   0x08

Definition at line 44 of file scsi_dh_alua.c.

Function Documentation

MODULE_AUTHOR ( "Hannes Reinecke <[email protected]>"  )
MODULE_DESCRIPTION ( "DM Multipath ALUA support )
module_exit ( alua_exit  )
module_init ( alua_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( ALUA_DH_VER  )