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, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _METASSIST_H 28 #define _METASSIST_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* Location of the volume-defaults.xml file */ 37 #define VOLUME_DEFAULTS_LOC "/etc/default/metassist.xml" 38 39 /* Available/unavailable device list delimiters */ 40 #define DEVICELISTDELIM ", " 41 42 /* Command-line arguments */ 43 #define COMMON_SHORTOPT_HELP '?' 44 #define COMMON_SHORTOPT_VERBOSITY 'v' 45 #define COMMON_SHORTOPT_VERSION 'V' 46 #define CREATE_SHORTOPT_AVAILABLE 'a' 47 #define CREATE_SHORTOPT_COMMANDFILE 'c' 48 #define CREATE_SHORTOPT_DATAPATHS 'p' 49 #define CREATE_SHORTOPT_DISKSET 's' 50 #define CREATE_SHORTOPT_FAULTRECOVERY 'f' 51 #define CREATE_SHORTOPT_INPUTFILE 'F' 52 #define CREATE_SHORTOPT_NAME 'n' 53 #define CREATE_SHORTOPT_REDUNDANCY 'r' 54 #define CREATE_SHORTOPT_SIZE 'S' 55 #define CREATE_SHORTOPT_CONFIGFILE 'd' 56 #define CREATE_SHORTOPT_UNAVAILABLE 'u' 57 #define CREATE_SHORTOPTS "a:cdfF:n:p:r:s:S:u:v:V?" 58 #define MAIN_SHORTOPTS "-v:V?" 59 #define MAIN_SUBCMD_CREATE "create" 60 61 #define SUBCMD_NONE 0 62 #define SUBCMD_CREATE 1 63 64 /* Command action masks */ 65 #define ACTION_EXECUTE 1 66 #define ACTION_OUTPUT_CONFIG 2 67 #define ACTION_OUTPUT_COMMANDS 4 68 69 /* Verbose flag sent to generated shell script */ 70 #define COMMAND_VERBOSE_FLAG "-v" 71 72 /* The name used to invoke the command */ 73 extern char *progname; 74 75 #ifdef __cplusplus 76 } 77 #endif 78 79 #endif /* _METASSIST_H */ 80