15913Sperrin /* 25913Sperrin * CDDL HEADER START 35913Sperrin * 45913Sperrin * The contents of this file are subject to the terms of the 55913Sperrin * Common Development and Distribution License (the "License"). 65913Sperrin * You may not use this file except in compliance with the License. 75913Sperrin * 85913Sperrin * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95913Sperrin * or http://www.opensolaris.org/os/licensing. 105913Sperrin * See the License for the specific language governing permissions 115913Sperrin * and limitations under the License. 125913Sperrin * 135913Sperrin * When distributing Covered Code, include this CDDL HEADER in each 145913Sperrin * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155913Sperrin * If applicable, add the following below this CDDL HEADER, with the 165913Sperrin * fields enclosed by brackets "[]" replaced with your own identifying 175913Sperrin * information: Portions Copyright [yyyy] [name of copyright owner] 185913Sperrin * 195913Sperrin * CDDL HEADER END 205913Sperrin */ 215913Sperrin /* 22*12296SLin.Ling@Sun.COM * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 235913Sperrin */ 245913Sperrin 255913Sperrin #ifndef _ZFS_COMUTIL_H 265913Sperrin #define _ZFS_COMUTIL_H 275913Sperrin 285913Sperrin #include <sys/fs/zfs.h> 295913Sperrin #include <sys/types.h> 305913Sperrin 315913Sperrin #ifdef __cplusplus 325913Sperrin extern "C" { 335913Sperrin #endif 345913Sperrin 3510921STim.Haley@Sun.COM extern boolean_t zfs_allocatable_devs(nvlist_t *); 3610921STim.Haley@Sun.COM extern void zpool_get_rewind_policy(nvlist_t *, zpool_rewind_policy_t *); 375913Sperrin 3811935SMark.Shellenbaum@Sun.COM extern int zfs_zpl_version_map(int spa_version); 3911935SMark.Shellenbaum@Sun.COM extern int zfs_spa_version_map(int zpl_version); 40*12296SLin.Ling@Sun.COM extern const char *zfs_history_event_names[LOG_END]; 4111935SMark.Shellenbaum@Sun.COM 425913Sperrin #ifdef __cplusplus 435913Sperrin } 445913Sperrin #endif 455913Sperrin 465913Sperrin #endif /* _ZFS_COMUTIL_H */ 47