FreeBSD ZFS
The Zettabyte File System

sys/uberblock_impl.h

Go to the documentation of this file.
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
00023  */
00024 
00025 #ifndef _SYS_UBERBLOCK_IMPL_H
00026 #define _SYS_UBERBLOCK_IMPL_H
00027 
00028 #include <sys/uberblock.h>
00029 
00030 #ifdef  __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 #define UBERBLOCK_MAGIC         0x00bab10c              
00035 #define UBERBLOCK_SHIFT         10                      
00048 struct uberblock {
00049         uint64_t        ub_magic;       
00050         uint64_t        ub_version;     
00051         uint64_t        ub_txg;         
00052         uint64_t        ub_guid_sum;    
00053         uint64_t        ub_timestamp;   
00054         blkptr_t        ub_rootbp;      
00057         uint64_t        ub_software_version;
00058 };
00059 
00060 #ifdef  __cplusplus
00061 }
00062 #endif
00063 
00064 #endif  /* _SYS_UBERBLOCK_IMPL_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines