zfs.h revision 4201a95e0468170d576f82c3aa63afecf718497a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER START
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin * The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinextern "C" {
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Types and constants shared between userland and the kernel.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Each dataset can be one of the following types. These constants can be
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * combined into masks that can be passed to various functions.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintypedef enum {
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME | ZFS_TYPE_SNAPSHOT)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Dataset properties are identified by these constants and must be added to
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * the end of this list to ensure that external consumers are not affected
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * by the change. If you make any changes to this list, be sure to update
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * the property table in usr/src/common/zfs/zfs_prop.c.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chintypedef enum {
} zfs_prop_t;
* the property table in usr/src/common/zfs/zpool_prop.c.
} zpool_prop_t;
typedef int (*zprop_func)(int, void *);
ZFS_DELEG_NONE = 0,
ZFS_CANMOUNT_OFF = 0,
ZFS_LOGBIAS_LATENCY = 0,
typedef enum zfs_share_op {
ZFS_SHARE_NFS = 0,
typedef enum zfs_smb_acl_op {
typedef enum zfs_cache_type {
ZFS_CACHE_NONE = 0,
* usr/src/grub/capability.
* also update the version_table[] and help message in zfs_prop.c.
#define ZPOOL_NO_REWIND 0
typedef struct zpool_rewind_policy {
typedef enum vdev_state {
} vdev_state_t;
typedef enum vdev_aux {
} vdev_aux_t;
typedef enum pool_state {
} pool_state_t;
typedef enum pool_scrub_type {
typedef enum zio_type {
ZIO_TYPE_NULL = 0,
} zio_type_t;
typedef struct vdev_stat {
} vdev_stat_t;
typedef enum zfs_ioc {
} zfs_ioc_t;
* libzfs_pool.c: hist_event_table[].
typedef enum history_internal_events {
LOG_NO_EVENT = 0,
#ifdef __cplusplus