blob: 43aa5824bd4c582cfabd8b7b5377005e103e7e59 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorgen Lundman4d3c95f2012-07-19 20:48:25 +00002/*
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
Jorgen Lundman4d3c95f2012-07-19 20:48:25 +00005 */
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
19typedef 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 */