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