4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _MPATHADM_TEXT_H
27 #define _MPATHADM_TEXT_H
33 MP_CHAR
* getTextString(int stringVal
);
35 /* define string values */
38 TEXT_LBTYPE_FAILOVER_ONLY
,
39 TEXT_LBTYPE_LBAREGION
,
40 TEXT_LBTYPE_DEVICEPROD
,
42 TEXT_LBTYPE_LEASTBLOCKS
,
43 TEXT_LBTYPE_ROUNDROBIN
,
46 TEXT_LBTYPE_PROPRIETARY1
,
47 TEXT_LBTYPE_PROPRIETARY2
,
48 TEXT_LBTYPE_PROPRIETARY3
,
49 TEXT_LBTYPE_PROPRIETARY4
,
50 TEXT_LBTYPE_PROPRIETARY5
,
51 TEXT_LBTYPE_PROPRIETARY6
,
52 TEXT_LBTYPE_PROPRIETARY7
,
53 TEXT_LBTYPE_PROPRIETARY8
,
54 TEXT_LBTYPE_PROPRIETARY9
,
55 TEXT_LBTYPE_PROPRIETARY10
,
56 TEXT_LBTYPE_PROPRIETARY11
,
57 TEXT_LBTYPE_PROPRIETARY12
,
58 TEXT_LBTYPE_PROPRIETARY13
,
59 TEXT_LBTYPE_PROPRIETARY14
,
60 TEXT_LBTYPE_PROPRIETARY15
,
61 TEXT_LBTYPE_PROPRIETARY16
,
71 TEXT_LB_ALLOWS_ACT_TPG
,
72 TEXT_LB_ALLOWS_PATH_OV
,
75 TEXT_LB_FB_POLLING_RATE
,
78 TEXT_LB_PR_POLLING_RATE
,
80 TEXT_LB_SUPPORTED_DEVICES
,
84 TEXT_LB_INQUIRY_NAME_TYPE
,
85 TEXT_NAME_TYPE_UNKNOWN
,
86 TEXT_NAME_TYPE_VPD83_TYPE1
,
87 TEXT_NAME_TYPE_VPD83_TYPE2
,
88 TEXT_NAME_TYPE_VPD83_TYPE3
,
89 TEXT_NAME_TYPE_DEVICE_SPECIFIC
,
92 TEXT_LB_EXPLICIT_FAILOVER
,
93 TEXT_LB_CURR_LOAD_BALANCE
,
96 TEXT_LB_INIT_PORT_NAME
,
97 TEXT_LB_TARGET_PORT_NAME
,
98 TEXT_LB_OVERRIDE_PATH
,
101 TEXT_LB_ACCESS_STATE
,
106 TEXT_LB_INITATOR_PORT
,
107 TEXT_LB_TRANSPORT_TYPE
,
108 TEXT_LB_OS_DEVICE_FILE
,
110 TEXT_LB_OP_PATH_COUNT
,
111 TEXT_LB_MPATH_SUPPORT
,
116 TEXT_MPSTATUS_SUCCESS
,
117 TEXT_MPSTATUS_INV_PARAMETER
,
118 TEXT_MPSTATUS_UNKNOWN_FN
,
119 TEXT_MPSTATUS_FAILED
,
120 TEXT_MPSTATUS_INSUFF_MEMORY
,
121 TEXT_MPSTATUS_INV_OBJ_TYPE
,
122 TEXT_MPSTATUS_OBJ_NOT_FOUND
,
123 TEXT_MPSTATUS_UNSUPPORTED
,
124 TEXT_MPSTATUS_FN_REPLACED
,
125 TEXT_MPSTATUS_ACC_STATE_INVAL
,
126 TEXT_MPSTATUS_PATH_NONOP
,
127 TEXT_MPSTATUS_TRY_AGAIN
,
128 TEXT_MPSTATUS_NOT_PERMITTED
,
129 ERR_NO_MPATH_SUPPORT_LIST
,
130 ERR_CANT_FIND_MPATH_SUPPORT
,
131 ERR_CANT_FIND_MPATH_SUPPORT_WITH_NAME
,
133 ERR_NO_SUPP_DEVICE_INFO
,
135 ERR_NO_ASSOCIATED_LU
,
136 ERR_LU_NOT_FOUND_WITH_MISSING_LU_STR
,
137 ERR_NO_LU_PATH_INFO_WITH_MISSING_LU_STR
,
142 ERR_NO_INIT_PORT_LIST_WITH_REASON
,
143 ERR_INIT_PORT_NOT_FOUND_WITH_MISSING_LU_STR
,
144 ERR_FAILED_TO_REGISTER_PLUGIN_NAME_WITH_REASON
,
145 ERR_FAILED_TO_DEREGISTER_PLUGIN_NAME_WITH_REASON
,
146 ERR_FAILED_TO_CHANGE_OPTION_WITH_REASON
,
147 ERR_FAILED_TO_ENABLE_PATH_WITH_REASON
,
148 ERR_FAILED_TO_DISABLE_PATH_WITH_REASON
,
149 ERR_FAILED_TO_OVERRIDE_PATH_WITH_REASON
,
150 ERR_LU_NOT_ASYMMETRIC
,
151 ERR_NO_FAILOVER_ALLOWED
,
152 ERR_FAILED_TO_FAILOVER_WITH_LU_AND_REASON
,
153 ERR_FAILED_TO_FAILOVER_WITH_REASON
,
154 ERR_FAILED_TO_CANCEL_OVERRIDE_PATH_WITH_REASON
,
155 ERR_FAILED_TO_FIND_PATH
,
159 MISSING_INIT_PORT_NAME
,
160 MISSING_TARGET_PORT_NAME
,
161 ERR_MEMORY_ALLOCATION
,
163 TEXT_UNABLE_TO_COMPLETE
,
166 ERR_LU_ACCESS_STATE_UNCHANGED
,
170 TEXT_ILLEGAL_ARGUMENT
,
171 TEXT_MPATH_SUPPORT_NOT_FOUND
,
172 TEXT_PATH_STATE_OKAY
,
173 TEXT_PATH_STATE_PATH_ERR
,
174 TEXT_PATH_STATE_LU_ERR
,
175 TEXT_PATH_STATE_RESERVED
,
176 TEXT_PATH_STATE_REMOVED
,
177 TEXT_PATH_STATE_TRANSITIONING
,
178 TEXT_PATH_STATE_OPERATIONAL_CLOSED
,
179 TEXT_PATH_STATE_INVALID_CLOSED
,
180 TEXT_PATH_STATE_OFFLINE_CLOSED
,
181 TEXT_ACCESS_STATE_ACTIVE_OPTIMIZED
,
182 TEXT_ACCESS_STATE_ACTIVE_NONOPTIMIZED
,
183 TEXT_ACCESS_STATE_STANDBY
,
184 TEXT_ACCESS_STATE_UNAVAILABLE
,
185 TEXT_ACCESS_STATE_TRANSITIONING
,
186 TEXT_ACCESS_STATE_ACTIVE
,
188 TEXT_TRANS_PORT_TYPE_MPNODE
,
189 TEXT_TRANS_PORT_TYPE_FC
,
190 TEXT_TRANS_PORT_TYPE_SPI
,
191 TEXT_TRANS_PORT_TYPE_ISCSI
,
192 TEXT_TRANS_PORT_TYPE_IFB
199 #endif /* _MPATHADM_TEXT_H */