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 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 00023 * Use is subject to license terms. 00024 */ 00025 00026 #ifndef _SYS_UBERBLOCK_H 00027 #define _SYS_UBERBLOCK_H 00028 00029 #include <sys/spa.h> 00030 #include <sys/vdev.h> 00031 #include <sys/zio.h> 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 typedef struct uberblock uberblock_t; 00038 00039 extern int uberblock_verify(uberblock_t *ub); 00040 extern int uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg); 00041 00042 #ifdef __cplusplus 00043 } 00044 #endif 00045 00046 #endif /* _SYS_UBERBLOCK_H */