Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * GRUB -- GRand Unified Bootloader |
| 3 | * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc. |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 6 | */ |
| 7 | /* |
| 8 | * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
| 9 | * Use is subject to license terms. |
| 10 | */ |
| 11 | |
| 12 | #ifndef _SYS_DSL_DIR_H |
| 13 | #define _SYS_DSL_DIR_H |
| 14 | |
| 15 | typedef struct dsl_dir_phys { |
| 16 | uint64_t dd_creation_time; /* not actually used */ |
| 17 | uint64_t dd_head_dataset_obj; |
| 18 | uint64_t dd_parent_obj; |
| 19 | uint64_t dd_clone_parent_obj; |
| 20 | uint64_t dd_child_dir_zapobj; |
| 21 | /* |
| 22 | * how much space our children are accounting for; for leaf |
| 23 | * datasets, == physical space used by fs + snaps |
| 24 | */ |
| 25 | uint64_t dd_used_bytes; |
| 26 | uint64_t dd_compressed_bytes; |
| 27 | uint64_t dd_uncompressed_bytes; |
| 28 | /* Administrative quota setting */ |
| 29 | uint64_t dd_quota; |
| 30 | /* Administrative reservation setting */ |
| 31 | uint64_t dd_reserved; |
| 32 | uint64_t dd_props_zapobj; |
| 33 | uint64_t dd_deleg_zapobj; /* dataset permissions */ |
| 34 | uint64_t dd_pad[20]; /* pad out to 256 bytes for good measure */ |
| 35 | } dsl_dir_phys_t; |
| 36 | |
| 37 | #endif /* _SYS_DSL_DIR_H */ |