1789Sahrens /* 2789Sahrens * CDDL HEADER START 3789Sahrens * 4789Sahrens * The contents of this file are subject to the terms of the 5789Sahrens * Common Development and Distribution License, Version 1.0 only 6789Sahrens * (the "License"). You may not use this file except in compliance 7789Sahrens * with the License. 8789Sahrens * 9789Sahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10789Sahrens * or http://www.opensolaris.org/os/licensing. 11789Sahrens * See the License for the specific language governing permissions 12789Sahrens * and limitations under the License. 13789Sahrens * 14789Sahrens * When distributing Covered Code, include this CDDL HEADER in each 15789Sahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16789Sahrens * If applicable, add the following below this CDDL HEADER, with the 17789Sahrens * fields enclosed by brackets "[]" replaced with your own identifying 18789Sahrens * information: Portions Copyright [yyyy] [name of copyright owner] 19789Sahrens * 20789Sahrens * CDDL HEADER END 21789Sahrens */ 22789Sahrens /* 23789Sahrens * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24789Sahrens * Use is subject to license terms. 25789Sahrens */ 26789Sahrens 27789Sahrens #ifndef _AVAILDEVS_H 28789Sahrens #define _AVAILDEVS_H 29789Sahrens 30789Sahrens #pragma ident "%Z%%M% %I% %E% SMI" 31789Sahrens 32789Sahrens #ifdef __cplusplus 33789Sahrens extern "C" { 34789Sahrens #endif 35789Sahrens 36789Sahrens /* 37789Sahrens * Constants 38789Sahrens */ 39789Sahrens 40*894Stalley /* Command-line arguments */ 41*894Stalley #define CLI_ARG_ALL 'a' 42*894Stalley #define CLI_ARG_DEVICES 'd' 43*894Stalley #define CLI_ARG_POOLS 'p' 44*894Stalley #define CLI_OPTSTRING "apd" 45*894Stalley 46789Sahrens /* Must match the values in XMLDataModel.java */ 47*894Stalley #define ELEMENT_ALIAS "alias" 48789Sahrens #define ELEMENT_AVAILABLE "available" 49789Sahrens #define ELEMENT_DISK "disk" 50*894Stalley #define ELEMENT_IMPORTABLE "importable" 51*894Stalley #define ELEMENT_POOL "pool" 52*894Stalley #define ELEMENT_ROOT "zfsconfig" 53789Sahrens #define ELEMENT_SLICE "slice" 54*894Stalley #define ATTR_ALIAS_NAME "name" 55*894Stalley #define ATTR_DISK_INUSE "inuse" 56789Sahrens #define ATTR_DISK_NAME "name" 57789Sahrens #define ATTR_DISK_SIZE "size" 58*894Stalley #define ATTR_POOL_HEALTH "health" 59*894Stalley #define ATTR_POOL_ID "id" 60*894Stalley #define ATTR_POOL_NAME "name" 61*894Stalley #define ATTR_POOL_STATE "state" 62789Sahrens #define ATTR_SLICE_NAME "name" 63789Sahrens #define ATTR_SLICE_SIZE "size" 64789Sahrens #define ATTR_SLICE_START "start" 65*894Stalley #define ATTR_SLICE_USED_BY "used-by" 66789Sahrens #define ATTR_SLICE_USED_NAME "used-name" 67*894Stalley #define VAL_ATTR_FALSE "false" 68789Sahrens #define VAL_ATTR_TRUE "true" 69789Sahrens 70789Sahrens #ifdef __cplusplus 71789Sahrens } 72789Sahrens #endif 73789Sahrens 74789Sahrens #endif /* _AVAILDEVS_H */ 75