xref: /titanic_50/usr/src/common/zfs/zfs_comutil.h (revision 3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5)
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*3f9d6ad7SLin Ling  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23b7b97454Sperrin  */
24b7b97454Sperrin 
25b7b97454Sperrin #ifndef	_ZFS_COMUTIL_H
26b7b97454Sperrin #define	_ZFS_COMUTIL_H
27b7b97454Sperrin 
28b7b97454Sperrin #include <sys/fs/zfs.h>
29b7b97454Sperrin #include <sys/types.h>
30b7b97454Sperrin 
31b7b97454Sperrin #ifdef	__cplusplus
32b7b97454Sperrin extern "C" {
33b7b97454Sperrin #endif
34b7b97454Sperrin 
35468c413aSTim Haley extern boolean_t zfs_allocatable_devs(nvlist_t *);
36468c413aSTim Haley extern void zpool_get_rewind_policy(nvlist_t *, zpool_rewind_policy_t *);
37b7b97454Sperrin 
380a586ceaSMark Shellenbaum extern int zfs_zpl_version_map(int spa_version);
390a586ceaSMark Shellenbaum extern int zfs_spa_version_map(int zpl_version);
40*3f9d6ad7SLin Ling extern const char *zfs_history_event_names[LOG_END];
410a586ceaSMark Shellenbaum 
42b7b97454Sperrin #ifdef	__cplusplus
43b7b97454Sperrin }
44b7b97454Sperrin #endif
45b7b97454Sperrin 
46b7b97454Sperrin #endif	/* _ZFS_COMUTIL_H */
47