FreeBSD ZFS
The Zettabyte File System
|
00001 /* 00002 * CDDL HEADER START 00003 * 00004 * The contents of this file are subject to the terms of the 00005 * Common Development and Distribution License (the "License"). 00006 * You may not use this file except in compliance with the License. 00007 * 00008 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 00009 * or http://www.opensolaris.org/os/licensing. 00010 * See the License for the specific language governing permissions 00011 * and limitations under the License. 00012 * 00013 * When distributing Covered Code, include this CDDL HEADER in each 00014 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 00015 * If applicable, add the following below this CDDL HEADER, with the 00016 * fields enclosed by brackets "[]" replaced with your own identifying 00017 * information: Portions Copyright [yyyy] [name of copyright owner] 00018 * 00019 * CDDL HEADER END 00020 */ 00021 00022 /* 00023 * Copyright (c) 2012 by Delphix. All rights reserved. 00024 */ 00025 00026 #ifndef _SYS_ZFEATURE_H 00027 #define _SYS_ZFEATURE_H 00028 00029 #include <sys/dmu.h> 00030 #include <sys/nvpair.h> 00031 #include "zfeature_common.h" 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 extern boolean_t feature_is_supported(objset_t *os, uint64_t obj, 00038 uint64_t desc_obj, nvlist_t *unsup_feat, nvlist_t *enabled_feat); 00039 00040 struct spa; 00041 extern void spa_feature_create_zap_objects(struct spa *, dmu_tx_t *); 00042 extern void spa_feature_enable(struct spa *, zfeature_info_t *, dmu_tx_t *); 00043 extern void spa_feature_incr(struct spa *, zfeature_info_t *, dmu_tx_t *); 00044 extern void spa_feature_decr(struct spa *, zfeature_info_t *, dmu_tx_t *); 00045 extern boolean_t spa_feature_is_enabled(struct spa *, zfeature_info_t *); 00046 extern boolean_t spa_feature_is_active(struct spa *, zfeature_info_t *); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 #endif /* _SYS_ZFEATURE_H */