xref: /titanic_50/usr/src/common/zfs/zfs_comutil.h (revision 4445fffbbb1ea25fd0e9ea68b9380dd7a6709025)
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 /*
223f9d6ad7SLin Ling  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23*4445fffbSMatthew Ahrens  * Copyright (c) 2012 by Delphix. All rights reserved.
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 
390a586ceaSMark Shellenbaum extern int zfs_zpl_version_map(int spa_version);
400a586ceaSMark Shellenbaum extern int zfs_spa_version_map(int zpl_version);
41*4445fffbSMatthew Ahrens #define	ZFS_NUM_LEGACY_HISTORY_EVENTS 41
42*4445fffbSMatthew Ahrens extern const char *zfs_history_event_names[ZFS_NUM_LEGACY_HISTORY_EVENTS];
430a586ceaSMark Shellenbaum 
44b7b97454Sperrin #ifdef	__cplusplus
45b7b97454Sperrin }
46b7b97454Sperrin #endif
47b7b97454Sperrin 
48b7b97454Sperrin #endif	/* _ZFS_COMUTIL_H */
49