xref: /openbmc/u-boot/include/zfs/dmu_objset.h (revision 1bad5e14)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  *  GRUB  --  GRand Unified Bootloader
4  *  Copyright (C) 1999,2000,2001,2002,2003,2004  Free Software Foundation, Inc.
5  */
6 /*
7  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
8  * Use is subject to license terms.
9  */
10 
11 #ifndef	_SYS_DMU_OBJSET_H
12 #define	_SYS_DMU_OBJSET_H
13 
14 #include <zfs/zil.h>
15 
16 #define OBJSET_PHYS_SIZE	2048
17 #define OBJSET_PHYS_SIZE_V14	1024
18 
19 typedef struct objset_phys {
20 	dnode_phys_t os_meta_dnode;
21 	zil_header_t os_zil_header;
22 	uint64_t os_type;
23 	uint64_t os_flags;
24 	char os_pad[OBJSET_PHYS_SIZE - sizeof(dnode_phys_t)*3 -
25 	    sizeof(zil_header_t) - sizeof(uint64_t)*2];
26 	dnode_phys_t os_userused_dnode;
27 	dnode_phys_t os_groupused_dnode;
28 } objset_phys_t;
29 
30 #endif /* _SYS_DMU_OBJSET_H */
31