/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <unistd.h>
#include <wchar.h>
#include <libintl.h>
#include <errno.h>
#include <time.h>
#include <string.h>
#include <assert.h>
#include <getopt.h>
#include <cmdparse.h>
#include <libstmf.h>
#include <signal.h>
#include <pthread.h>
#include <locale.h>
static char *getExecBasename(char *);
static int setLuStandbyFunc(int, char **, cmdOptions_t *, void *);
static int disableAluaFunc(int, char **, cmdOptions_t *, void *);
static int enableAluaFunc(int, char **, cmdOptions_t *, void *);
/* tables set up based on cmdparse instructions */
/* add new options here */
{NULL, 0, 0, 0}
};
/*
* Add new subcommands here
*/
};
/* globals */
char *cmdName;
/*
* setLuStandbyFunc
*
* Purpose: set lu to standby
*
*/
/*ARGSUSED*/
static int
void *args)
{
int i;
int ret = 0;
gettext("hexadecimal digits long"));
return (1);
}
for (i = 0; i < GUID_INPUT; i++)
sGuid[i] = 0;
for (i = 0; i < sizeof (stmfGuid); i++) {
}
if (ret != STMF_STATUS_SUCCESS) {
switch (ret) {
case STMF_ERROR_PERM:
gettext("permission denied"));
break;
gettext("STMF service not found"));
break;
case STMF_ERROR_NOT_FOUND:
break;
gettext("STMF service version incorrect"));
break;
default:
gettext("unknown error"));
break;
}
}
return (ret);
}
/*
* disableAluaFunc
*
* Purpose: disable alua mode
*
*/
/*ARGSUSED*/
static int
void *args)
{
return (stmfSetAluaState(B_FALSE, 0));
}
/*
* enableAluaFunc
*
* Purpose: enable alua mode
*
*/
/*ARGSUSED*/
static int
void *args)
{
if (operands[0][0] == '1') {
node_id = 1;
}
}
/*
* input:
* execFullName - exec name of program (argv[0])
*
* (changed name to lowerCamelCase to keep consistent with this file)
*
* Returns:
* command name portion of execFullName
*/
static char *
{
/* guard against '/' at end of command invocation */
for (;;) {
break;
} else {
if (*execBasename == '\0') {
*lastSlash = '\0';
continue;
}
break;
}
}
return (execBasename);
}
int
{
int ret;
int funcRet;
(void) textdomain(TEXT_DOMAIN);
/* set global command name */
if (ret != 0) {
return (ret);
}
return (funcRet);
} /* end main */