89 #define STMF_ERROR_INVALID_PROPSIZE     (STMF_STATUS_ERROR | 0x19)
  90 #define STMF_ERROR_INVALID_PROP         (STMF_STATUS_ERROR | 0x20)
  91 #define STMF_ERROR_PERSIST_TYPE         (STMF_STATUS_ERROR | 0x21)
  92 #define STMF_ERROR_TG_ONLINE            (STMF_STATUS_ERROR | 0x22)
  93 #define STMF_ERROR_ACCESS_STATE_SET     (STMF_STATUS_ERROR | 0x23)
  94 #define STMF_ERROR_NO_PROP_STANDBY      (STMF_STATUS_ERROR | 0x24)
  95 #define STMF_ERROR_POST_MSG_FAILED      (STMF_STATUS_ERROR | 0x25)
  96 #define STMF_ERROR_DOOR_INSTALLED       (STMF_STATUS_ERROR | 0x26)
  97 
  98 /* Failures for stmfCreateLu */
  99 #define STMF_ERROR_FILE_IN_USE          (STMF_STATUS_ERROR | 0x100)
 100 #define STMF_ERROR_INVALID_BLKSIZE      (STMF_STATUS_ERROR | 0x101)
 101 #define STMF_ERROR_GUID_IN_USE          (STMF_STATUS_ERROR | 0x102)
 102 #define STMF_ERROR_META_FILE_NAME       (STMF_STATUS_ERROR | 0x103)
 103 #define STMF_ERROR_DATA_FILE_NAME       (STMF_STATUS_ERROR | 0x104)
 104 #define STMF_ERROR_SIZE_OUT_OF_RANGE    (STMF_STATUS_ERROR | 0x105)
 105 #define STMF_ERROR_LU_BUSY              (STMF_STATUS_ERROR | 0x106)
 106 #define STMF_ERROR_META_CREATION        (STMF_STATUS_ERROR | 0x107)
 107 #define STMF_ERROR_FILE_SIZE_INVALID    (STMF_STATUS_ERROR | 0x108)
 108 #define STMF_ERROR_WRITE_CACHE_SET      (STMF_STATUS_ERROR | 0x109)
 109 
 110 /* Initiator Name Types */
 111 #define STMF_FC_PORT_WWN            1
 112 #define STMF_ISCSI_NAME             2
 113 
 114 
 115 /* provider types */
 116 #define STMF_LU_PROVIDER_TYPE   1
 117 #define STMF_PORT_PROVIDER_TYPE 2
 118 
 119 /* LU Resource types */
 120 #define STMF_DISK   0
 121 
 122 /* Persistence methods */
 123 #define STMF_PERSIST_SMF        1
 124 #define STMF_PERSIST_NONE       2
 125 
 126 /* Logical unit access states */
 127 #define STMF_ACCESS_ACTIVE              "0"
 128 #define STMF_ACCESS_ACTIVE_TO_STANDBY   "1"
 
 
 132 /*
 133  * LU Disk Properties
 134  */
 135 
 136 enum {
 137         STMF_LU_PROP_ALIAS = 1,
 138         STMF_LU_PROP_BLOCK_SIZE,
 139         STMF_LU_PROP_COMPANY_ID,
 140         STMF_LU_PROP_FILENAME,
 141         STMF_LU_PROP_GUID,
 142         STMF_LU_PROP_META_FILENAME,
 143         STMF_LU_PROP_MGMT_URL,
 144         STMF_LU_PROP_NEW,
 145         STMF_LU_PROP_SIZE,
 146         STMF_LU_PROP_WRITE_PROTECT,
 147         STMF_LU_PROP_WRITE_CACHE_DISABLE,
 148         STMF_LU_PROP_VID,
 149         STMF_LU_PROP_PID,
 150         STMF_LU_PROP_SERIAL_NUM,
 151         STMF_LU_PROP_ACCESS_STATE,
 152         STMF_LU_PROP_HOST_ID
 153 };
 154 
 155 
 156 /* devid code set and name types */
 157 #define EUI_64_TYPE     2
 158 #define NAA_TYPE        3
 159 #define SCSI_NAME_TYPE  8
 160 
 161 #define BINARY_CODE_SET 1
 162 #define ASCII_CODE_SET  2
 163 #define UTF_8_CODE_SET  3
 164 
 165 typedef enum _stmfProtocol
 166 {
 167         STMF_PROTOCOL_FIBRE_CHANNEL =   0,
 168         STMF_PROTOCOL_SCSI =            1,
 169         STMF_PROTOCOL_SSA =             2,
 170         STMF_PROTOCOL_IEEE_1394 =       3,
 171         STMF_PROTOCOL_SRP =             4,
 172         STMF_PROTOCOL_ISCSI =           5,
 
 | 
 
 
  89 #define STMF_ERROR_INVALID_PROPSIZE     (STMF_STATUS_ERROR | 0x19)
  90 #define STMF_ERROR_INVALID_PROP         (STMF_STATUS_ERROR | 0x20)
  91 #define STMF_ERROR_PERSIST_TYPE         (STMF_STATUS_ERROR | 0x21)
  92 #define STMF_ERROR_TG_ONLINE            (STMF_STATUS_ERROR | 0x22)
  93 #define STMF_ERROR_ACCESS_STATE_SET     (STMF_STATUS_ERROR | 0x23)
  94 #define STMF_ERROR_NO_PROP_STANDBY      (STMF_STATUS_ERROR | 0x24)
  95 #define STMF_ERROR_POST_MSG_FAILED      (STMF_STATUS_ERROR | 0x25)
  96 #define STMF_ERROR_DOOR_INSTALLED       (STMF_STATUS_ERROR | 0x26)
  97 
  98 /* Failures for stmfCreateLu */
  99 #define STMF_ERROR_FILE_IN_USE          (STMF_STATUS_ERROR | 0x100)
 100 #define STMF_ERROR_INVALID_BLKSIZE      (STMF_STATUS_ERROR | 0x101)
 101 #define STMF_ERROR_GUID_IN_USE          (STMF_STATUS_ERROR | 0x102)
 102 #define STMF_ERROR_META_FILE_NAME       (STMF_STATUS_ERROR | 0x103)
 103 #define STMF_ERROR_DATA_FILE_NAME       (STMF_STATUS_ERROR | 0x104)
 104 #define STMF_ERROR_SIZE_OUT_OF_RANGE    (STMF_STATUS_ERROR | 0x105)
 105 #define STMF_ERROR_LU_BUSY              (STMF_STATUS_ERROR | 0x106)
 106 #define STMF_ERROR_META_CREATION        (STMF_STATUS_ERROR | 0x107)
 107 #define STMF_ERROR_FILE_SIZE_INVALID    (STMF_STATUS_ERROR | 0x108)
 108 #define STMF_ERROR_WRITE_CACHE_SET      (STMF_STATUS_ERROR | 0x109)
 109 #define STMF_ERROR_UNMAP_SET            (STMF_STATUS_ERROR | 0x10a)
 110 
 111 /* Initiator Name Types */
 112 #define STMF_FC_PORT_WWN            1
 113 #define STMF_ISCSI_NAME             2
 114 
 115 
 116 /* provider types */
 117 #define STMF_LU_PROVIDER_TYPE   1
 118 #define STMF_PORT_PROVIDER_TYPE 2
 119 
 120 /* LU Resource types */
 121 #define STMF_DISK   0
 122 
 123 /* Persistence methods */
 124 #define STMF_PERSIST_SMF        1
 125 #define STMF_PERSIST_NONE       2
 126 
 127 /* Logical unit access states */
 128 #define STMF_ACCESS_ACTIVE              "0"
 129 #define STMF_ACCESS_ACTIVE_TO_STANDBY   "1"
 
 
 133 /*
 134  * LU Disk Properties
 135  */
 136 
 137 enum {
 138         STMF_LU_PROP_ALIAS = 1,
 139         STMF_LU_PROP_BLOCK_SIZE,
 140         STMF_LU_PROP_COMPANY_ID,
 141         STMF_LU_PROP_FILENAME,
 142         STMF_LU_PROP_GUID,
 143         STMF_LU_PROP_META_FILENAME,
 144         STMF_LU_PROP_MGMT_URL,
 145         STMF_LU_PROP_NEW,
 146         STMF_LU_PROP_SIZE,
 147         STMF_LU_PROP_WRITE_PROTECT,
 148         STMF_LU_PROP_WRITE_CACHE_DISABLE,
 149         STMF_LU_PROP_VID,
 150         STMF_LU_PROP_PID,
 151         STMF_LU_PROP_SERIAL_NUM,
 152         STMF_LU_PROP_ACCESS_STATE,
 153         STMF_LU_PROP_HOST_ID,
 154         STMF_LU_PROP_UNMAP
 155 };
 156 
 157 
 158 /* devid code set and name types */
 159 #define EUI_64_TYPE     2
 160 #define NAA_TYPE        3
 161 #define SCSI_NAME_TYPE  8
 162 
 163 #define BINARY_CODE_SET 1
 164 #define ASCII_CODE_SET  2
 165 #define UTF_8_CODE_SET  3
 166 
 167 typedef enum _stmfProtocol
 168 {
 169         STMF_PROTOCOL_FIBRE_CHANNEL =   0,
 170         STMF_PROTOCOL_SCSI =            1,
 171         STMF_PROTOCOL_SSA =             2,
 172         STMF_PROTOCOL_IEEE_1394 =       3,
 173         STMF_PROTOCOL_SRP =             4,
 174         STMF_PROTOCOL_ISCSI =           5,
 
 |