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 /* 23*1206Stalley * Copyright 2006 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 40894Stalley /* Command-line arguments */ 41894Stalley #define CLI_ARG_ALL 'a' 42894Stalley #define CLI_ARG_DEVICES 'd' 43894Stalley #define CLI_ARG_POOLS 'p' 44894Stalley #define CLI_OPTSTRING "apd" 45894Stalley 46789Sahrens /* Must match the values in XMLDataModel.java */ 47894Stalley #define ELEMENT_ALIAS "alias" 48789Sahrens #define ELEMENT_AVAILABLE "available" 49789Sahrens #define ELEMENT_DISK "disk" 50894Stalley #define ELEMENT_IMPORTABLE "importable" 51894Stalley #define ELEMENT_POOL "pool" 52894Stalley #define ELEMENT_ROOT "zfsconfig" 53789Sahrens #define ELEMENT_SLICE "slice" 54*1206Stalley 55894Stalley #define ATTR_ALIAS_NAME "name" 56*1206Stalley #define ATTR_DEVICE_STATE "devicestate" 57*1206Stalley #define ATTR_DEVICE_STATUS "devicestatus" 58894Stalley #define ATTR_DISK_INUSE "inuse" 59789Sahrens #define ATTR_DISK_NAME "name" 60789Sahrens #define ATTR_DISK_SIZE "size" 61*1206Stalley #define ATTR_POOL_CHECKSUM_ERRORS "checksumerrors" 62894Stalley #define ATTR_POOL_ID "id" 63894Stalley #define ATTR_POOL_NAME "name" 64*1206Stalley #define ATTR_POOL_READ_BYTES "readbytes" 65*1206Stalley #define ATTR_POOL_READ_ERRORS "readerrors" 66*1206Stalley #define ATTR_POOL_READ_OPERATIONS "readoperations" 67*1206Stalley #define ATTR_POOL_SIZE "size" 68*1206Stalley #define ATTR_POOL_STATE "poolstate" 69*1206Stalley #define ATTR_POOL_STATUS "poolstatus" 70*1206Stalley #define ATTR_POOL_USED "used" 71*1206Stalley #define ATTR_POOL_WRITE_BYTES "writebytes" 72*1206Stalley #define ATTR_POOL_WRITE_ERRORS "writeerrors" 73*1206Stalley #define ATTR_POOL_WRITE_OPERATIONS "writeoperations" 74789Sahrens #define ATTR_SLICE_NAME "name" 75789Sahrens #define ATTR_SLICE_SIZE "size" 76789Sahrens #define ATTR_SLICE_START "start" 77894Stalley #define ATTR_SLICE_USED_BY "used-by" 78789Sahrens #define ATTR_SLICE_USED_NAME "used-name" 79*1206Stalley 80894Stalley #define VAL_ATTR_FALSE "false" 81789Sahrens #define VAL_ATTR_TRUE "true" 82789Sahrens 83789Sahrens #ifdef __cplusplus 84789Sahrens } 85789Sahrens #endif 86789Sahrens 87789Sahrens #endif /* _AVAILDEVS_H */ 88