xref: /openbmc/u-boot/include/zfs/dsl_dataset.h (revision 63e22517)
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 2007 Sun Microsystems, Inc.  All rights reserved.
8  * Use is subject to license terms.
9  */
10 
11 #ifndef	_SYS_DSL_DATASET_H
12 #define	_SYS_DSL_DATASET_H
13 
14 typedef struct dsl_dataset_phys {
15 	uint64_t ds_dir_obj;
16 	uint64_t ds_prev_snap_obj;
17 	uint64_t ds_prev_snap_txg;
18 	uint64_t ds_next_snap_obj;
19 	uint64_t ds_snapnames_zapobj;	/* zap obj of snaps; ==0 for snaps */
20 	uint64_t ds_num_children;	/* clone/snap children; ==0 for head */
21 	uint64_t ds_creation_time;	/* seconds since 1970 */
22 	uint64_t ds_creation_txg;
23 	uint64_t ds_deadlist_obj;
24 	uint64_t ds_used_bytes;
25 	uint64_t ds_compressed_bytes;
26 	uint64_t ds_uncompressed_bytes;
27 	uint64_t ds_unique_bytes;	/* only relevant to snapshots */
28 	/*
29 	 * The ds_fsid_guid is a 56-bit ID that can change to avoid
30 	 * collisions.  The ds_guid is a 64-bit ID that will never
31 	 * change, so there is a small probability that it will collide.
32 	 */
33 	uint64_t ds_fsid_guid;
34 	uint64_t ds_guid;
35 	uint64_t ds_flags;
36 	blkptr_t ds_bp;
37 	uint64_t ds_pad[8]; /* pad out to 320 bytes for good measure */
38 } dsl_dataset_phys_t;
39 
40 #endif /* _SYS_DSL_DATASET_H */
41