1*789Sahrens /* 2*789Sahrens * CDDL HEADER START 3*789Sahrens * 4*789Sahrens * The contents of this file are subject to the terms of the 5*789Sahrens * Common Development and Distribution License, Version 1.0 only 6*789Sahrens * (the "License"). You may not use this file except in compliance 7*789Sahrens * with the License. 8*789Sahrens * 9*789Sahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*789Sahrens * or http://www.opensolaris.org/os/licensing. 11*789Sahrens * See the License for the specific language governing permissions 12*789Sahrens * and limitations under the License. 13*789Sahrens * 14*789Sahrens * When distributing Covered Code, include this CDDL HEADER in each 15*789Sahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*789Sahrens * If applicable, add the following below this CDDL HEADER, with the 17*789Sahrens * fields enclosed by brackets "[]" replaced with your own identifying 18*789Sahrens * information: Portions Copyright [yyyy] [name of copyright owner] 19*789Sahrens * 20*789Sahrens * CDDL HEADER END 21*789Sahrens */ 22*789Sahrens /* 23*789Sahrens * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*789Sahrens * Use is subject to license terms. 25*789Sahrens */ 26*789Sahrens 27*789Sahrens #ifndef _AVAILDEVS_H 28*789Sahrens #define _AVAILDEVS_H 29*789Sahrens 30*789Sahrens #pragma ident "%Z%%M% %I% %E% SMI" 31*789Sahrens 32*789Sahrens #ifdef __cplusplus 33*789Sahrens extern "C" { 34*789Sahrens #endif 35*789Sahrens 36*789Sahrens /* 37*789Sahrens * Constants 38*789Sahrens */ 39*789Sahrens 40*789Sahrens /* Must match the values in XMLDataModel.java */ 41*789Sahrens #define ELEMENT_ROOT "zfsconfig" 42*789Sahrens #define ELEMENT_AVAILABLE "available" 43*789Sahrens #define ELEMENT_DISK "disk" 44*789Sahrens #define ELEMENT_ALIAS "alias" 45*789Sahrens #define ELEMENT_SLICE "slice" 46*789Sahrens #define ATTR_DISK_NAME "name" 47*789Sahrens #define ATTR_DISK_SIZE "size" 48*789Sahrens #define ATTR_DISK_INUSE "inuse" 49*789Sahrens #define ATTR_ALIAS_NAME "name" 50*789Sahrens #define ATTR_SLICE_NAME "name" 51*789Sahrens #define ATTR_SLICE_SIZE "size" 52*789Sahrens #define ATTR_SLICE_START "start" 53*789Sahrens #define ATTR_SLICE_USED_NAME "used-name" 54*789Sahrens #define ATTR_SLICE_USED_BY "used-by" 55*789Sahrens #define VAL_ATTR_TRUE "true" 56*789Sahrens #define VAL_ATTR_FALSE "false" 57*789Sahrens 58*789Sahrens #ifdef __cplusplus 59*789Sahrens } 60*789Sahrens #endif 61*789Sahrens 62*789Sahrens #endif /* _AVAILDEVS_H */ 63