zfs_comutil.h revision 4445fffbbb1ea25fd0e9ea68b9380dd7a6709025
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/*
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Ling * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
4445fffbbb1ea25fd0e9ea68b9380dd7a6709025Matthew Ahrens * Copyright (c) 2012 by Delphix. All rights reserved.
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
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaumextern int zfs_zpl_version_map(int spa_version);
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaumextern int zfs_spa_version_map(int zpl_version);
4445fffbbb1ea25fd0e9ea68b9380dd7a6709025Matthew Ahrens#define ZFS_NUM_LEGACY_HISTORY_EVENTS 41
4445fffbbb1ea25fd0e9ea68b9380dd7a6709025Matthew Ahrensextern const char *zfs_history_event_names[ZFS_NUM_LEGACY_HISTORY_EVENTS];
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#ifdef __cplusplus
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin}
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#endif
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrin#endif /* _ZFS_COMUTIL_H */