dmu_objset.h 761 B

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