1 1.1 haad /* 2 1.1 haad * CDDL HEADER START 3 1.1 haad * 4 1.1 haad * The contents of this file are subject to the terms of the 5 1.1.1.2 haad * Common Development and Distribution License (the "License"). 6 1.1.1.2 haad * You may not use this file except in compliance with the License. 7 1.1 haad * 8 1.1 haad * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 1.1 haad * or http://www.opensolaris.org/os/licensing. 10 1.1 haad * See the License for the specific language governing permissions 11 1.1 haad * and limitations under the License. 12 1.1 haad * 13 1.1 haad * When distributing Covered Code, include this CDDL HEADER in each 14 1.1 haad * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 1.1 haad * If applicable, add the following below this CDDL HEADER, with the 16 1.1 haad * fields enclosed by brackets "[]" replaced with your own identifying 17 1.1 haad * information: Portions Copyright [yyyy] [name of copyright owner] 18 1.1 haad * 19 1.1 haad * CDDL HEADER END 20 1.1 haad */ 21 1.1 haad /* 22 1.1.1.2 haad * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23 1.1 haad * Use is subject to license terms. 24 1.1 haad */ 25 1.1.1.3 chs /* 26 1.1.1.3 chs * Copyright (c) 2014 by Delphix. All rights reserved. 27 1.1.1.3 chs */ 28 1.1 haad 29 1.1 haad #ifndef _SYS_UBERBLOCK_H 30 1.1 haad #define _SYS_UBERBLOCK_H 31 1.1 haad 32 1.1 haad #include <sys/spa.h> 33 1.1 haad #include <sys/vdev.h> 34 1.1 haad #include <sys/zio.h> 35 1.1 haad 36 1.1 haad #ifdef __cplusplus 37 1.1 haad extern "C" { 38 1.1 haad #endif 39 1.1 haad 40 1.1 haad typedef struct uberblock uberblock_t; 41 1.1 haad 42 1.1.1.3 chs extern int uberblock_verify(uberblock_t *); 43 1.1.1.3 chs extern boolean_t uberblock_update(uberblock_t *, vdev_t *, uint64_t); 44 1.1 haad 45 1.1 haad #ifdef __cplusplus 46 1.1 haad } 47 1.1 haad #endif 48 1.1 haad 49 1.1 haad #endif /* _SYS_UBERBLOCK_H */ 50