154 /*ARGSUSED*/
155 static int
156 disableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
157 void *args)
158 {
159 return (stmfSetAluaState(B_FALSE, 0));
160 }
161
162 /*
163 * enableAluaFunc
164 *
165 * Purpose: enable alua mode
166 *
167 */
168 /*ARGSUSED*/
169 static int
170 enableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
171 void *args)
172 {
173 uint8_t node_id = 0;
174 if (operands[0][1] == '1') {
175 node_id = 1;
176 }
177 return (stmfSetAluaState(B_TRUE, node_id));
178 }
179
180
181 /*
182 * input:
183 * execFullName - exec name of program (argv[0])
184 *
185 * copied from usr/src/cmd/zoneadm/zoneadm.c in OS/Net
186 * (changed name to lowerCamelCase to keep consistent with this file)
187 *
188 * Returns:
189 * command name portion of execFullName
190 */
191 static char *
192 getExecBasename(char *execFullname)
193 {
194 char *lastSlash, *execBasename;
|
154 /*ARGSUSED*/
155 static int
156 disableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
157 void *args)
158 {
159 return (stmfSetAluaState(B_FALSE, 0));
160 }
161
162 /*
163 * enableAluaFunc
164 *
165 * Purpose: enable alua mode
166 *
167 */
168 /*ARGSUSED*/
169 static int
170 enableAluaFunc(int operandLen, char *operands[], cmdOptions_t *options,
171 void *args)
172 {
173 uint8_t node_id = 0;
174 if (operands[0][0] == '1') {
175 node_id = 1;
176 }
177 return (stmfSetAluaState(B_TRUE, node_id));
178 }
179
180
181 /*
182 * input:
183 * execFullName - exec name of program (argv[0])
184 *
185 * copied from usr/src/cmd/zoneadm/zoneadm.c in OS/Net
186 * (changed name to lowerCamelCase to keep consistent with this file)
187 *
188 * Returns:
189 * command name portion of execFullName
190 */
191 static char *
192 getExecBasename(char *execFullname)
193 {
194 char *lastSlash, *execBasename;
|