usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
changeset 13700 2889e2596bd6
parent 13686 4bc0783f6064
child 13743 95aba6e49b9f
equal deleted inserted replaced
13699:733714f4dc24 13700:2889e2596bd6
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 /*
    21 /*
    22  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    22  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2011 by Delphix. All rights reserved.
    23  * Copyright (c) 2012 by Delphix. All rights reserved.
    24  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
    24  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
    25  */
    25  */
    26 
    26 
    27 #ifndef	_SYS_DSL_DATASET_H
    27 #ifndef	_SYS_DSL_DATASET_H
    28 #define	_SYS_DSL_DATASET_H
    28 #define	_SYS_DSL_DATASET_H
    84 	uint64_t ds_snapnames_zapobj;	/* DMU_OT_DSL_DS_SNAP_MAP 0 for snaps */
    84 	uint64_t ds_snapnames_zapobj;	/* DMU_OT_DSL_DS_SNAP_MAP 0 for snaps */
    85 	uint64_t ds_num_children;	/* clone/snap children; ==0 for head */
    85 	uint64_t ds_num_children;	/* clone/snap children; ==0 for head */
    86 	uint64_t ds_creation_time;	/* seconds since 1970 */
    86 	uint64_t ds_creation_time;	/* seconds since 1970 */
    87 	uint64_t ds_creation_txg;
    87 	uint64_t ds_creation_txg;
    88 	uint64_t ds_deadlist_obj;	/* DMU_OT_DEADLIST */
    88 	uint64_t ds_deadlist_obj;	/* DMU_OT_DEADLIST */
    89 	uint64_t ds_used_bytes;
    89 	/*
       
    90 	 * ds_referenced_bytes, ds_compressed_bytes, and ds_uncompressed_bytes
       
    91 	 * include all blocks referenced by this dataset, including those
       
    92 	 * shared with any other datasets.
       
    93 	 */
       
    94 	uint64_t ds_referenced_bytes;
    90 	uint64_t ds_compressed_bytes;
    95 	uint64_t ds_compressed_bytes;
    91 	uint64_t ds_uncompressed_bytes;
    96 	uint64_t ds_uncompressed_bytes;
    92 	uint64_t ds_unique_bytes;	/* only relevant to snapshots */
    97 	uint64_t ds_unique_bytes;	/* only relevant to snapshots */
    93 	/*
    98 	/*
    94 	 * The ds_fsid_guid is a 56-bit ID that can change to avoid
    99 	 * The ds_fsid_guid is a 56-bit ID that can change to avoid