zfs_comutil.h revision 468c413a79615e77179e8d98f22a7e513a8135bd
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin/*
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * CDDL HEADER START
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin *
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * The contents of this file are subject to the terms of the
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * Common Development and Distribution License (the "License").
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * You may not use this file except in compliance with the License.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin *
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * or http://www.opensolaris.org/os/licensing.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * See the License for the specific language governing permissions
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * and limitations under the License.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin *
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * When distributing Covered Code, include this CDDL HEADER in each
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * If applicable, add the following below this CDDL HEADER, with the
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * fields enclosed by brackets "[]" replaced with your own identifying
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * information: Portions Copyright [yyyy] [name of copyright owner]
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin *
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * CDDL HEADER END
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin */
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin/*
468c413a79615e77179e8d98f22a7e513a8135bdTim Haley * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin * Use is subject to license terms.
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin */
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#ifndef _ZFS_COMUTIL_H
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#define _ZFS_COMUTIL_H
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#include <sys/fs/zfs.h>
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#include <sys/types.h>
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#ifdef __cplusplus
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrinextern "C" {
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#endif
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
468c413a79615e77179e8d98f22a7e513a8135bdTim Haleyextern boolean_t zfs_allocatable_devs(nvlist_t *);
468c413a79615e77179e8d98f22a7e513a8135bdTim Haleyextern void zpool_get_rewind_policy(nvlist_t *, zpool_rewind_policy_t *);
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#ifdef __cplusplus
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin}
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#endif
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#endif /* _ZFS_COMUTIL_H */