xref: /openbmc/u-boot/include/zfs/dsl_dataset.h (revision ed09a554)
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 2007 Sun Microsystems, Inc.  All rights reserved.
9  * Use is subject to license terms.
10  */
11 
12 #ifndef	_SYS_DSL_DATASET_H
13 #define	_SYS_DSL_DATASET_H
14 
15 typedef struct dsl_dataset_phys {
16 	uint64_t ds_dir_obj;
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 */
29 	/*
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.
33 	 */
34 	uint64_t ds_fsid_guid;
35 	uint64_t ds_guid;
36 	uint64_t ds_flags;
37 	blkptr_t ds_bp;
38 	uint64_t ds_pad[8]; /* pad out to 320 bytes for good measure */
39 } dsl_dataset_phys_t;
40 
41 #endif /* _SYS_DSL_DATASET_H */
42