blob: 2f51fc4e765f92ad515601021eacc30a7e271335 [file] [log] [blame]
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +00001/*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +00006 */
7/*
8 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9 * Use is subject to license terms.
10 */
11
12#ifndef _SYS_DMU_OBJSET_H
13#define _SYS_DMU_OBJSET_H
14
15#include <zfs/zil.h>
16
17#define OBJSET_PHYS_SIZE 2048
18#define OBJSET_PHYS_SIZE_V14 1024
19
20typedef struct objset_phys {
21 dnode_phys_t os_meta_dnode;
22 zil_header_t os_zil_header;
23 uint64_t os_type;
24 uint64_t os_flags;
25 char os_pad[OBJSET_PHYS_SIZE - sizeof(dnode_phys_t)*3 -
26 sizeof(zil_header_t) - sizeof(uint64_t)*2];
27 dnode_phys_t os_userused_dnode;
28 dnode_phys_t os_groupused_dnode;
29} objset_phys_t;
30
31#endif /* _SYS_DMU_OBJSET_H */