1b1b8ab34Slling /* 2b1b8ab34Slling * GRUB -- GRand Unified Bootloader 3b1b8ab34Slling * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. 4b1b8ab34Slling * 5b1b8ab34Slling * This program is free software; you can redistribute it and/or modify 6b1b8ab34Slling * it under the terms of the GNU General Public License as published by 7b1b8ab34Slling * the Free Software Foundation; either version 2 of the License, or 8b1b8ab34Slling * (at your option) any later version. 9b1b8ab34Slling * 10b1b8ab34Slling * This program is distributed in the hope that it will be useful, 11b1b8ab34Slling * but WITHOUT ANY WARRANTY; without even the implied warranty of 12b1b8ab34Slling * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13b1b8ab34Slling * GNU General Public License for more details. 14b1b8ab34Slling * 15b1b8ab34Slling * You should have received a copy of the GNU General Public License 16b1b8ab34Slling * along with this program; if not, write to the Free Software 17b1b8ab34Slling * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18b1b8ab34Slling */ 19b1b8ab34Slling /* 2014843421SMatthew Ahrens * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 21b1b8ab34Slling * Use is subject to license terms. 22b1b8ab34Slling */ 23*c94be943SAndrew Stormont /* 24*c94be943SAndrew Stormont * Copyright 2020 RackTop Systems, Inc. 25*c94be943SAndrew Stormont */ 26b1b8ab34Slling 27b1b8ab34Slling #ifndef _SYS_DMU_OBJSET_H 28b1b8ab34Slling #define _SYS_DMU_OBJSET_H 29b1b8ab34Slling 30*c94be943SAndrew Stormont #define OBJSET_PHYS_SIZE_V1 1024 31*c94be943SAndrew Stormont #define OBJSET_PHYS_SIZE_V2 2048 32*c94be943SAndrew Stormont #define OBJSET_PHYS_SIZE_V3 4096 33*c94be943SAndrew Stormont 34b1b8ab34Slling typedef struct objset_phys { 35b1b8ab34Slling dnode_phys_t os_meta_dnode; 36b1b8ab34Slling zil_header_t os_zil_header; 37b1b8ab34Slling uint64_t os_type; 3814843421SMatthew Ahrens uint64_t os_flags; 39*c94be943SAndrew Stormont uint8_t os_portable_mac[ZIO_OBJSET_MAC_LEN]; 40*c94be943SAndrew Stormont uint8_t os_local_mac[ZIO_OBJSET_MAC_LEN]; 41*c94be943SAndrew Stormont char os_pad0[OBJSET_PHYS_SIZE_V2 - sizeof (dnode_phys_t)*3 - 42*c94be943SAndrew Stormont sizeof (zil_header_t) - sizeof (uint64_t)*2 - 43*c94be943SAndrew Stormont 2*ZIO_OBJSET_MAC_LEN]; 4414843421SMatthew Ahrens dnode_phys_t os_userused_dnode; 4514843421SMatthew Ahrens dnode_phys_t os_groupused_dnode; 46*c94be943SAndrew Stormont dnode_phys_t os_projectused_dnode; 47*c94be943SAndrew Stormont char os_pad1[OBJSET_PHYS_SIZE_V3 - OBJSET_PHYS_SIZE_V2 - 48*c94be943SAndrew Stormont sizeof (dnode_phys_t)]; 49b1b8ab34Slling } objset_phys_t; 50b1b8ab34Slling 51b1b8ab34Slling #endif /* _SYS_DMU_OBJSET_H */ 52