1fa9e406ahrens/*
2fa9e406ahrens * CDDL HEADER START
3fa9e406ahrens *
4fa9e406ahrens * The contents of this file are subject to the terms of the
5f65e61cahrens * Common Development and Distribution License (the "License").
6f65e61cahrens * You may not use this file except in compliance with the License.
7fa9e406ahrens *
8fa9e406ahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fa9e406ahrens * or http://www.opensolaris.org/os/licensing.
10fa9e406ahrens * See the License for the specific language governing permissions
11fa9e406ahrens * and limitations under the License.
12fa9e406ahrens *
13fa9e406ahrens * When distributing Covered Code, include this CDDL HEADER in each
14fa9e406ahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fa9e406ahrens * If applicable, add the following below this CDDL HEADER, with the
16fa9e406ahrens * fields enclosed by brackets "[]" replaced with your own identifying
17fa9e406ahrens * information: Portions Copyright [yyyy] [name of copyright owner]
18fa9e406ahrens *
19fa9e406ahrens * CDDL HEADER END
20fa9e406ahrens */
21fa9e406ahrens/*
2206e0070Mark Shellenbaum * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
233f2366cGordon Ross * Use is subject to license terms.
24fa98e48Matthew Ahrens */
25aad0257Saso Kiselkov/*
26810e43bBill Pijewski * Copyright (c) 2014 by Delphix. All rights reserved.
27bc9014eJustin Gibbs */
28c3d26abMatthew Ahrens
29fa9e406ahrens#ifndef _SYS_UBERBLOCK_H
30fa9e406ahrens#define	_SYS_UBERBLOCK_H
31fa9e406ahrens
32fa9e406ahrens#include <sys/spa.h>
332f3d878Matthew Ahrens#include <sys/vdev.h>
34fa9e406ahrens#include <sys/zio.h>
35fa9e406ahrens
36fa9e406ahrens#ifdef	__cplusplus
37fa9e406ahrensextern "C" {
38fa9e406ahrens#endif
39fa9e406ahrens
40fa9e406ahrenstypedef struct uberblock uberblock_t;
41fa9e406ahrens
42fa9e406ahrensextern int uberblock_verify(uberblock_t *);
430a586ceMark Shellenbaumextern boolean_t uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg,
440a586ceMark Shellenbaum    uint64_t mmp_delay);
455d7b4d4Matthew Ahrens
465d7b4d4Matthew Ahrens#ifdef	__cplusplus
47bf16b11Matthew Ahrens}
48dcbf3bdGeorge Wilson#endif
49770499eDan Kimmel
505cabbc6Prashanth Sreenivasa#endif	/* _SYS_UBERBLOCK_H */
513a2d8a1Paul Dagnelie