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 /* 231206Stalley * 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" 541206Stalley 55894Stalley #define ATTR_ALIAS_NAME "name" 561206Stalley #define ATTR_DEVICE_STATE "devicestate" 571206Stalley #define ATTR_DEVICE_STATUS "devicestatus" 58894Stalley #define ATTR_DISK_INUSE "inuse" 59789Sahrens #define ATTR_DISK_NAME "name" 60789Sahrens #define ATTR_DISK_SIZE "size" 611206Stalley #define ATTR_POOL_CHECKSUM_ERRORS "checksumerrors" 62894Stalley #define ATTR_POOL_ID "id" 63894Stalley #define ATTR_POOL_NAME "name" 641206Stalley #define ATTR_POOL_READ_BYTES "readbytes" 651206Stalley #define ATTR_POOL_READ_ERRORS "readerrors" 661206Stalley #define ATTR_POOL_READ_OPERATIONS "readoperations" 67*1378Stalley #define ATTR_POOL_REPLACEMENT_SIZE "replacementsize" 681206Stalley #define ATTR_POOL_SIZE "size" 691206Stalley #define ATTR_POOL_STATE "poolstate" 701206Stalley #define ATTR_POOL_STATUS "poolstatus" 711206Stalley #define ATTR_POOL_USED "used" 721206Stalley #define ATTR_POOL_WRITE_BYTES "writebytes" 731206Stalley #define ATTR_POOL_WRITE_ERRORS "writeerrors" 741206Stalley #define ATTR_POOL_WRITE_OPERATIONS "writeoperations" 75789Sahrens #define ATTR_SLICE_NAME "name" 76789Sahrens #define ATTR_SLICE_SIZE "size" 77789Sahrens #define ATTR_SLICE_START "start" 78894Stalley #define ATTR_SLICE_USED_BY "used-by" 79789Sahrens #define ATTR_SLICE_USED_NAME "used-name" 801206Stalley 81894Stalley #define VAL_ATTR_FALSE "false" 82789Sahrens #define VAL_ATTR_TRUE "true" 83789Sahrens 84789Sahrens #ifdef __cplusplus 85789Sahrens } 86789Sahrens #endif 87789Sahrens 88789Sahrens #endif /* _AVAILDEVS_H */ 89