xref: /titanic_50/usr/src/cmd/mpathadm/mpathadm_text.h (revision 159d09a20817016f09b3ea28d1bdada4a336bb91)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _MPATHADM_TEXT_H
27 #define	_MPATHADM_TEXT_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 MP_CHAR * getTextString(int stringVal);
34 
35 /* define string values */
36 enum textStrings {
37 	TEXT_UNKNOWN,
38 	TEXT_LBTYPE_FAILOVER_ONLY,
39 	TEXT_LBTYPE_LBAREGION,
40 	TEXT_LBTYPE_DEVICEPROD,
41 	TEXT_LBTYPE_LEASTIO,
42 	TEXT_LBTYPE_LEASTBLOCKS,
43 	TEXT_LBTYPE_ROUNDROBIN,
44 	TEXT_LBTYPE_UNKNOWN,
45 	TEXT_LBTYPE_NONE,
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,
62 	TEXT_NA,
63 	TEXT_YES,
64 	TEXT_NO,
65 	TEXT_ON,
66 	TEXT_OFF,
67 	TEXT_LB_VENDOR,
68 	TEXT_LB_DRIVER_NAME,
69 	TEXT_LB_DEFAULT_LB,
70 	TEXT_LB_SUPPORTED_LB,
71 	TEXT_LB_ALLOWS_ACT_TPG,
72 	TEXT_LB_ALLOWS_PATH_OV,
73 	TEXT_LB_SUPP_AUTO_FB,
74 	TEXT_LB_AUTO_FB,
75 	TEXT_LB_FB_POLLING_RATE,
76 	TEXT_LB_SUPP_AUTO_P,
77 	TEXT_LB_AUTO_PROB,
78 	TEXT_LB_PR_POLLING_RATE,
79 	TEXT_LB_SUPP_DEVICES,
80 	TEXT_LB_SUPPORTED_DEVICES,
81 	TEXT_LB_PRODUCT,
82 	TEXT_LB_REVISION,
83 	TEXT_LB_LOGICAL_UNIT,
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,
90 	TEXT_LB_INQUIRY_NAME,
91 	TEXT_LB_ASYMMETRIC,
92 	TEXT_LB_EXPLICIT_FAILOVER,
93 	TEXT_LB_CURR_LOAD_BALANCE,
94 	TEXT_LB_LU_GROUP_ID,
95 	TEXT_LB_PATH_INFO,
96 	TEXT_LB_INIT_PORT_NAME,
97 	TEXT_LB_TARGET_PORT_NAME,
98 	TEXT_LB_OVERRIDE_PATH,
99 	TEXT_LB_PATH_STATE,
100 	TEXT_LB_TPG_INFO,
101 	TEXT_LB_ACCESS_STATE,
102 	TEXT_LB_ID,
103 	TEXT_TPORT_LIST,
104 	TEXT_LB_NAME,
105 	TEXT_LB_RELATIVE_ID,
106 	TEXT_LB_INITATOR_PORT,
107 	TEXT_LB_TRANSPORT_TYPE,
108 	TEXT_LB_OS_DEVICE_FILE,
109 	TEXT_LB_PATH_COUNT,
110 	TEXT_LB_OP_PATH_COUNT,
111 	TEXT_LB_MPATH_SUPPORT,
112 	TEXT_PROPRIETARY,
113 	TEXT_LB_ENABLED,
114 	TEXT_LB_DISABLED,
115 	TEXT_UNKNOWN_OBJECT,
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,
132 	ERR_NO_PROPERTIES,
133 	ERR_NO_SUPP_DEVICE_INFO,
134 	ERR_NO_LU_LIST,
135 	ERR_NO_ASSOCIATED_LU,
136 	ERR_LU_NOT_FOUND_WITH_MISSING_LU_STR,
137 	ERR_NO_LU_PATH_INFO_WITH_MISSING_LU_STR,
138 	ERR_NO_LU_PATH_INFO,
139 	ERR_NO_ASSOC_TPGS,
140 	ERR_NO_ASSOC_TPORTS,
141 	ERR_NO_INIT_PORTS,
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,
156 	LU_NOT_FOUND,
157 	FAILED_TO_FIND_PATH,
158 	MISSING_LU_NAME,
159 	MISSING_INIT_PORT_NAME,
160 	MISSING_TARGET_PORT_NAME,
161 	ERR_MEMORY_ALLOCATION,
162 	TEXT_MORE_INFO,
163 	TEXT_UNABLE_TO_COMPLETE,
164 	ERR_FILE_DESCRIPTOR,
165 	ERR_DEVID,
166 	ERR_LU_ACCESS_STATE_UNCHANGED,
167 	TEXT_AUTO_FAILBACK,
168 	TEXT_AUTO_PROBING,
169 	TEXT_LOAD_BALANCE,
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,
187 	TEXT_ANY_DEVICE,
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
193 };
194 
195 #ifdef	__cplusplus
196 }
197 #endif
198 
199 #endif /* _MPATHADM_TEXT_H */
200