Print this page
2619 asynchronous destruction of ZFS file systems
2747 SPA versioning with zfs feature flags
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <gwilson@delphix.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>
Approved by: Dan McDonald <danmcd@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   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   24   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  25   25   */
  26   26  
  27   27  #ifndef _SYS_DSL_DATASET_H
  28   28  #define _SYS_DSL_DATASET_H
  29   29  
  30   30  #include <sys/dmu.h>
  31   31  #include <sys/spa.h>
  32   32  #include <sys/txg.h>
  33   33  #include <sys/zio.h>
↓ open down ↓ 45 lines elided ↑ open up ↑
  79   79  typedef struct dsl_dataset_phys {
  80   80          uint64_t ds_dir_obj;            /* DMU_OT_DSL_DIR */
  81   81          uint64_t ds_prev_snap_obj;      /* DMU_OT_DSL_DATASET */
  82   82          uint64_t ds_prev_snap_txg;
  83   83          uint64_t ds_next_snap_obj;      /* DMU_OT_DSL_DATASET */
  84   84          uint64_t ds_snapnames_zapobj;   /* DMU_OT_DSL_DS_SNAP_MAP 0 for snaps */
  85   85          uint64_t ds_num_children;       /* clone/snap children; ==0 for head */
  86   86          uint64_t ds_creation_time;      /* seconds since 1970 */
  87   87          uint64_t ds_creation_txg;
  88   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   95          uint64_t ds_compressed_bytes;
  91   96          uint64_t ds_uncompressed_bytes;
  92   97          uint64_t ds_unique_bytes;       /* only relevant to snapshots */
  93   98          /*
  94   99           * The ds_fsid_guid is a 56-bit ID that can change to avoid
  95  100           * collisions.  The ds_guid is a 64-bit ID that will never
  96  101           * change, so there is a small probability that it will collide.
  97  102           */
  98  103          uint64_t ds_fsid_guid;
  99  104          uint64_t ds_guid;
↓ open down ↓ 193 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX