libzfs_impl.h revision b1b8ab34de515a5e83206da22c3d7e563241b021
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
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 * CDDL HEADER END
55434c770c89aa1b84474f2559a106803511aba0ek * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#pragma ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern "C" {
a2eea2e101e6a163a537dcc6d4e3c4da2a0ea5b2ahrens zfs_type_t zfs_head_type; /* type excluding snapshot */
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrock * This is different from checking zfs_type, because it will also catch
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrock * snapshots of volumes.
a2eea2e101e6a163a537dcc6d4e3c4da2a0ea5b2ahrens#define ZFS_IS_VOLUME(zhp) ((zhp)->zfs_head_type == ZFS_TYPE_VOLUME)
ece3d9b3bacef51a5f34d993935eedbb7bb87059llingint zfs_error_fmt(libzfs_handle_t *, int, const char *, ...);
99653d4ee642c6528e88224f12409a5f23060994eschrockvoid zfs_error_aux(libzfs_handle_t *, const char *, ...);
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockvoid *zfs_realloc(libzfs_handle_t *, void *, size_t, size_t);
ece3d9b3bacef51a5f34d993935eedbb7bb87059llingint zfs_standard_error(libzfs_handle_t *, int, const char *);
ece3d9b3bacef51a5f34d993935eedbb7bb87059llingint zfs_standard_error_fmt(libzfs_handle_t *, int, const char *, ...);
ece3d9b3bacef51a5f34d993935eedbb7bb87059llingint zpool_standard_error(libzfs_handle_t *, int, const char *);
ece3d9b3bacef51a5f34d993935eedbb7bb87059llingint zpool_standard_error_fmt(libzfs_handle_t *, int, const char *, ...);
3bb79bece53191f2cf27aa61a72ea1784a7ce700eschrockint get_dependents(libzfs_handle_t *, boolean_t, const char *, char ***,
b1b8ab34de515a5e83206da22c3d7e563241b021llingint zfs_expand_proplist_common(libzfs_handle_t *, zfs_proplist_t **,
b1b8ab34de515a5e83206da22c3d7e563241b021llingint zfs_get_proplist_common(libzfs_handle_t *, char *, zfs_proplist_t **,
b1b8ab34de515a5e83206da22c3d7e563241b021llingzfs_prop_t zfs_prop_iter_common(zfs_prop_f, void *, zfs_type_t, boolean_t);
b1b8ab34de515a5e83206da22c3d7e563241b021llingzfs_prop_t zfs_name_to_prop_common(const char *, zfs_type_t);
b1b8ab34de515a5e83206da22c3d7e563241b021llingnvlist_t *zfs_validate_properties(libzfs_handle_t *, zfs_type_t, char *,
b1b8ab34de515a5e83206da22c3d7e563241b021lling nvlist_t *, uint64_t, zfs_handle_t *zhp, const char *errbuf);
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockint zcmd_alloc_dst_nvlist(libzfs_handle_t *, zfs_cmd_t *, size_t);
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockint zcmd_write_src_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t *, size_t *);
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockint zcmd_expand_dst_nvlist(libzfs_handle_t *, zfs_cmd_t *);
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockint zcmd_read_dst_nvlist(libzfs_handle_t *, zfs_cmd_t *, nvlist_t **);
fa9e4066f08beec538e775443c5be79dd423fcabahrensvoid changelist_rename(prop_changelist_t *, const char *, const char *);
b12a1c38fc215cc54fa6014069fd2b8dbb496646llingvoid changelist_remove(zfs_handle_t *, prop_changelist_t *);
fa9e4066f08beec538e775443c5be79dd423fcabahrensprop_changelist_t *changelist_gather(zfs_handle_t *, zfs_prop_t, int);
99653d4ee642c6528e88224f12409a5f23060994eschrockzfs_handle_t *make_dataset_handle(libzfs_handle_t *, const char *);
94de1d4cf6ec0a3bf040dcc4b8df107c4ed36b51eschrockint zpool_open_silent(libzfs_handle_t *, const char *, zpool_handle_t **);
99653d4ee642c6528e88224f12409a5f23060994eschrockint zvol_create_link(libzfs_handle_t *, const char *);
99653d4ee642c6528e88224f12409a5f23060994eschrockint zvol_remove_link(libzfs_handle_t *, const char *);
f3861e1a2ceec23a5b699c24d814b7775a9e0b52ahlint zpool_iter_zvol(zpool_handle_t *, int (*)(const char *, void *), void *);
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif /* _LIBFS_IMPL_H */