2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
5 * SPDX-License-Identifier: GPL-2.0+
8 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
9 * Use is subject to license terms.
12 #ifndef _SYS_DSL_DATASET_H
13 #define _SYS_DSL_DATASET_H
15 typedef struct dsl_dataset_phys {
17 uint64_t ds_prev_snap_obj;
18 uint64_t ds_prev_snap_txg;
19 uint64_t ds_next_snap_obj;
20 uint64_t ds_snapnames_zapobj; /* zap obj of snaps; ==0 for snaps */
21 uint64_t ds_num_children; /* clone/snap children; ==0 for head */
22 uint64_t ds_creation_time; /* seconds since 1970 */
23 uint64_t ds_creation_txg;
24 uint64_t ds_deadlist_obj;
25 uint64_t ds_used_bytes;
26 uint64_t ds_compressed_bytes;
27 uint64_t ds_uncompressed_bytes;
28 uint64_t ds_unique_bytes; /* only relevant to snapshots */
30 * The ds_fsid_guid is a 56-bit ID that can change to avoid
31 * collisions. The ds_guid is a 64-bit ID that will never
32 * change, so there is a small probability that it will collide.
34 uint64_t ds_fsid_guid;
38 uint64_t ds_pad[8]; /* pad out to 320 bytes for good measure */
41 #endif /* _SYS_DSL_DATASET_H */