libzfs.h revision 98579b20de8e05c5117968705a18979f8b75b863
4e5b757fbcf21077677360be274461dcd9064106kupfer * CDDL HEADER START
4e5b757fbcf21077677360be274461dcd9064106kupfer * The contents of this file are subject to the terms of the
4e5b757fbcf21077677360be274461dcd9064106kupfer * Common Development and Distribution License (the "License").
4e5b757fbcf21077677360be274461dcd9064106kupfer * You may not use this file except in compliance with the License.
4e5b757fbcf21077677360be274461dcd9064106kupfer * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e5b757fbcf21077677360be274461dcd9064106kupfer * See the License for the specific language governing permissions
4e5b757fbcf21077677360be274461dcd9064106kupfer * and limitations under the License.
4e5b757fbcf21077677360be274461dcd9064106kupfer * When distributing Covered Code, include this CDDL HEADER in each
4e5b757fbcf21077677360be274461dcd9064106kupfer * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e5b757fbcf21077677360be274461dcd9064106kupfer * If applicable, add the following below this CDDL HEADER, with the
4e5b757fbcf21077677360be274461dcd9064106kupfer * fields enclosed by brackets "[]" replaced with your own identifying
4e5b757fbcf21077677360be274461dcd9064106kupfer * information: Portions Copyright [yyyy] [name of copyright owner]
4e5b757fbcf21077677360be274461dcd9064106kupfer * CDDL HEADER END
4e5b757fbcf21077677360be274461dcd9064106kupfer * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
4e5b757fbcf21077677360be274461dcd9064106kupfer * Use is subject to license terms.
4e5b757fbcf21077677360be274461dcd9064106kupfer#pragma ident "%Z%%M% %I% %E% SMI"
4e5b757fbcf21077677360be274461dcd9064106kupferextern "C" {
4e5b757fbcf21077677360be274461dcd9064106kupfer * Miscellaneous ZFS constants
4e5b757fbcf21077677360be274461dcd9064106kupfer * libzfs errors
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_PROPREADONLY, /* cannot set readonly property */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_PROPTYPE, /* property does not apply to dataset type */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_PROPNONINHERIT, /* property is not inheritable */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_BADTYPE, /* dataset is not of appropriate type */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_VOLTOOBIG, /* volume is too large for 32-bit system */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_BADRESTORE, /* unable to restore to destination */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_BADTARGET, /* bad attach/detach/replace target */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_POOLUNAVAIL, /* pool is currently unavailable */
4e5b757fbcf21077677360be274461dcd9064106kupfer EZFS_CROSSTARGET, /* rename or clone across pool or dataset */
4e5b757fbcf21077677360be274461dcd9064106kupfer * Basic handle types
4e5b757fbcf21077677360be274461dcd9064106kupfer * Library initialization
4e5b757fbcf21077677360be274461dcd9064106kupferextern libzfs_handle_t *zpool_get_handle(zpool_handle_t *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern libzfs_handle_t *zfs_get_handle(zfs_handle_t *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern void libzfs_print_on_error(libzfs_handle_t *, boolean_t);
4e5b757fbcf21077677360be274461dcd9064106kupferextern const char *libzfs_error_action(libzfs_handle_t *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern const char *libzfs_error_description(libzfs_handle_t *);
4e5b757fbcf21077677360be274461dcd9064106kupfer * Basic handle functions
4e5b757fbcf21077677360be274461dcd9064106kupferextern zpool_handle_t *zpool_open(libzfs_handle_t *, const char *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern zpool_handle_t *zpool_open_canfail(libzfs_handle_t *, const char *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern uint64_t zpool_get_space_used(zpool_handle_t *);
4e5b757fbcf21077677360be274461dcd9064106kupferextern uint64_t zpool_get_space_total(zpool_handle_t *);
nvlist_t *, int);
} zfs_source_t;
char *, size_t);
char **badopt);
#ifdef NDEBUG
boolean_t *);
#ifdef __cplusplus