xref: /titanic_50/usr/src/common/zfs/zfs_comutil.h (revision 0a586cea3ceec7e5e50e7e54c745082a7a333ac2)
1b7b97454Sperrin /*
2b7b97454Sperrin  * CDDL HEADER START
3b7b97454Sperrin  *
4b7b97454Sperrin  * The contents of this file are subject to the terms of the
5b7b97454Sperrin  * Common Development and Distribution License (the "License").
6b7b97454Sperrin  * You may not use this file except in compliance with the License.
7b7b97454Sperrin  *
8b7b97454Sperrin  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b7b97454Sperrin  * or http://www.opensolaris.org/os/licensing.
10b7b97454Sperrin  * See the License for the specific language governing permissions
11b7b97454Sperrin  * and limitations under the License.
12b7b97454Sperrin  *
13b7b97454Sperrin  * When distributing Covered Code, include this CDDL HEADER in each
14b7b97454Sperrin  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b7b97454Sperrin  * If applicable, add the following below this CDDL HEADER, with the
16b7b97454Sperrin  * fields enclosed by brackets "[]" replaced with your own identifying
17b7b97454Sperrin  * information: Portions Copyright [yyyy] [name of copyright owner]
18b7b97454Sperrin  *
19b7b97454Sperrin  * CDDL HEADER END
20b7b97454Sperrin  */
21b7b97454Sperrin /*
22*0a586ceaSMark Shellenbaum  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23b7b97454Sperrin  * Use is subject to license terms.
24b7b97454Sperrin  */
25b7b97454Sperrin 
26b7b97454Sperrin #ifndef	_ZFS_COMUTIL_H
27b7b97454Sperrin #define	_ZFS_COMUTIL_H
28b7b97454Sperrin 
29b7b97454Sperrin #include <sys/fs/zfs.h>
30b7b97454Sperrin #include <sys/types.h>
31b7b97454Sperrin 
32b7b97454Sperrin #ifdef	__cplusplus
33b7b97454Sperrin extern "C" {
34b7b97454Sperrin #endif
35b7b97454Sperrin 
36468c413aSTim Haley extern boolean_t zfs_allocatable_devs(nvlist_t *);
37468c413aSTim Haley extern void zpool_get_rewind_policy(nvlist_t *, zpool_rewind_policy_t *);
38b7b97454Sperrin 
39*0a586ceaSMark Shellenbaum extern int zfs_zpl_version_map(int spa_version);
40*0a586ceaSMark Shellenbaum extern int zfs_spa_version_map(int zpl_version);
41*0a586ceaSMark Shellenbaum 
42b7b97454Sperrin #ifdef	__cplusplus
43b7b97454Sperrin }
44b7b97454Sperrin #endif
45b7b97454Sperrin 
46b7b97454Sperrin #endif	/* _ZFS_COMUTIL_H */
47