fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
a55b6846f87afedf14b3f9b64fbb8c0d0a3f2fe2cristian * Common Development and Distribution License (the "License").
a55b6846f87afedf14b3f9b64fbb8c0d0a3f2fe2cristian * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
a55b6846f87afedf14b3f9b64fbb8c0d0a3f2fe2cristian * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifndef _AVAILDEVS_H
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define _AVAILDEVS_H
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#pragma ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifdef __cplusplus
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern "C" {
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Constants
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
c8e9ed14d97e244b9753db14caf8481f181f5750talley/* Command-line arguments */
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define CLI_ARG_ALL 'a'
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define CLI_ARG_DEVICES 'd'
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define CLI_ARG_POOLS 'p'
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define CLI_OPTSTRING "apd"
c8e9ed14d97e244b9753db14caf8481f181f5750talley
fa9e4066f08beec538e775443c5be79dd423fcabahrens/* Must match the values in XMLDataModel.java */
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ELEMENT_ALIAS "alias"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ELEMENT_AVAILABLE "available"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ELEMENT_DISK "disk"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ELEMENT_IMPORTABLE "importable"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ELEMENT_POOL "pool"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ELEMENT_ROOT "zfsconfig"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ELEMENT_SLICE "slice"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ATTR_ALIAS_NAME "name"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_DEVICE_STATE "devicestate"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_DEVICE_STATUS "devicestatus"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ATTR_DISK_INUSE "inuse"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_DISK_NAME "name"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_DISK_SIZE "size"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_CHECKSUM_ERRORS "checksumerrors"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ATTR_POOL_ID "id"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ATTR_POOL_NAME "name"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_READ_BYTES "readbytes"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_READ_ERRORS "readerrors"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_READ_OPERATIONS "readoperations"
841f46eda88d9c4c4d56949ffedc55ed210ddc92talley#define ATTR_POOL_REPLACEMENT_SIZE "replacementsize"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_SIZE "size"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_STATE "poolstate"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_STATUS "poolstatus"
a55b6846f87afedf14b3f9b64fbb8c0d0a3f2fe2cristian#define ATTR_POOL_VERSION "poolversion"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_USED "used"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_WRITE_BYTES "writebytes"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_WRITE_ERRORS "writeerrors"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley#define ATTR_POOL_WRITE_OPERATIONS "writeoperations"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_SLICE_NAME "name"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_SLICE_SIZE "size"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_SLICE_START "start"
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define ATTR_SLICE_USED_BY "used-by"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define ATTR_SLICE_USED_NAME "used-name"
fbfd10ff571cfd0139aa5127460f1b8a53dac971talley
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define VAL_ATTR_FALSE "false"
c8e9ed14d97e244b9753db14caf8481f181f5750talley#define VAL_ATTR_TRUE "true"
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifdef __cplusplus
fa9e4066f08beec538e775443c5be79dd423fcabahrens}
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif /* _AVAILDEVS_H */