1789Sahrens /* 2789Sahrens * CDDL HEADER START 3789Sahrens * 4789Sahrens * The contents of this file are subject to the terms of the 5*10922SJeff.Bonwick@Sun.COM * Common Development and Distribution License (the "License"). 6*10922SJeff.Bonwick@Sun.COM * You may not use this file except in compliance with the License. 7789Sahrens * 8789Sahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9789Sahrens * or http://www.opensolaris.org/os/licensing. 10789Sahrens * See the License for the specific language governing permissions 11789Sahrens * and limitations under the License. 12789Sahrens * 13789Sahrens * When distributing Covered Code, include this CDDL HEADER in each 14789Sahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15789Sahrens * If applicable, add the following below this CDDL HEADER, with the 16789Sahrens * fields enclosed by brackets "[]" replaced with your own identifying 17789Sahrens * information: Portions Copyright [yyyy] [name of copyright owner] 18789Sahrens * 19789Sahrens * CDDL HEADER END 20789Sahrens */ 21789Sahrens /* 22*10922SJeff.Bonwick@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23789Sahrens * Use is subject to license terms. 24789Sahrens */ 25789Sahrens 26789Sahrens #ifndef _SYS_UBERBLOCK_H 27789Sahrens #define _SYS_UBERBLOCK_H 28789Sahrens 29789Sahrens #include <sys/spa.h> 30789Sahrens #include <sys/vdev.h> 31789Sahrens #include <sys/zio.h> 32789Sahrens 33789Sahrens #ifdef __cplusplus 34789Sahrens extern "C" { 35789Sahrens #endif 36789Sahrens 37789Sahrens typedef struct uberblock uberblock_t; 38789Sahrens 39789Sahrens extern int uberblock_verify(uberblock_t *ub); 40789Sahrens extern int uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg); 41789Sahrens 42789Sahrens #ifdef __cplusplus 43789Sahrens } 44789Sahrens #endif 45789Sahrens 46789Sahrens #endif /* _SYS_UBERBLOCK_H */ 47