dmu_objset.h 761 B

123456789101112131415161718192021222324252627282930
  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. #ifndef _SYS_DMU_OBJSET_H
  11. #define _SYS_DMU_OBJSET_H
  12. #include <zfs/zil.h>
  13. #define OBJSET_PHYS_SIZE 2048
  14. #define OBJSET_PHYS_SIZE_V14 1024
  15. typedef struct objset_phys {
  16. dnode_phys_t os_meta_dnode;
  17. zil_header_t os_zil_header;
  18. uint64_t os_type;
  19. uint64_t os_flags;
  20. char os_pad[OBJSET_PHYS_SIZE - sizeof(dnode_phys_t)*3 -
  21. sizeof(zil_header_t) - sizeof(uint64_t)*2];
  22. dnode_phys_t os_userused_dnode;
  23. dnode_phys_t os_groupused_dnode;
  24. } objset_phys_t;
  25. #endif /* _SYS_DMU_OBJSET_H */