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