Print this page
NEX-5795 Rename 'wrc' as 'wbc' in the source and in the tech docs
Reviewed by: Alex Aizman <alex.aizman@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
NEX-5265 zpool_prop and zfeature_common need a comment to update the test suites when a new feature or prop is added
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
6328 Fix cstyle errors in zfs codebase (fix studio)
6328 Fix cstyle errors in zfs codebase
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed by: Jorgen Lundman <lundman@lundman.net>
Approved by: Robert Mustacchi <rm@joyent.com>
4185 add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R (fix studio build)
4185 add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Garrett D'Amore <garrett@damore.org>
6047 SPARC boot should support feature@embedded_data
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
5959 clean up per-dataset feature count code
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
NEX-4476 WRC: Allow to use write back cache per tree of datasets
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
Reviewed by: Alex Aizman <alex.aizman@nexenta.com>
Revert "NEX-4476 WRC: Allow to use write back cache per tree of datasets"
This reverts commit fe97b74444278a6f36fec93179133641296312da.
NEX-4476 WRC: Allow to use write back cache per tree of datasets
Reviewed by: Alek Pinchuk <alek.pinchuk@nexenta.com>
Reviewed by: Alex Aizman <alex.aizman@nexenta.com>
NEX-4044 remove sha1crc32 in preparation with upstream merge of edon-r and skien
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Alek Pinchuk <alek@nexenta.com>
Conflicts:
        usr/src/uts/common/fs/zfs/sys/zio_checksum.h
Revert "SUP-817 Removed references to special device"
This reverts commit f8970e28f0d8bd6b69711722f341e3e1d0e1babf.
SUP-817 Removed references to special device
4370 avoid transmitting holes during zfs send
4371 DMU code clean up
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Garrett D'Amore <garrett@damore.org>
OS-80 support for vdev and CoS properties for the new I/O scheduler
OS-95 lint warning introduced by OS-61
Issue #34: Add feature flag for the compount checksum - sha1crc32
           Contributors: Boris Protopopov
Issue #9: Support for persistent CoS/vdev attributes with feature flags
          Support for feature flags for special tier
          Contributors: Daniil Lunev, Boris Protopopov

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zfeature_common.c
          +++ new/usr/src/common/zfs/zfeature_common.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
  24   24   * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
  25   25   * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  26      - * Copyright (c) 2014, Nexenta Systems, Inc. All rights reserved.
  27   26   * Copyright (c) 2014 Integros [integros.com]
       27 + * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
  28   28   */
  29   29  
  30   30  #ifdef _KERNEL
  31   31  #include <sys/systm.h>
  32   32  #else
  33   33  #include <errno.h>
  34   34  #include <string.h>
  35   35  #endif
  36   36  #include <sys/debug.h>
  37   37  #include <sys/fs/zfs.h>
↓ open down ↓ 123 lines elided ↑ open up ↑
 161  161              (deps_contains_feature(deps, SPA_FEATURE_EXTENSIBLE_DATASET)));
 162  162  
 163  163          feature->fi_feature = fid;
 164  164          feature->fi_guid = guid;
 165  165          feature->fi_uname = name;
 166  166          feature->fi_desc = desc;
 167  167          feature->fi_flags = flags;
 168  168          feature->fi_depends = deps;
 169  169  }
 170  170  
      171 +spa_feature_t cos_deps[] = { SPA_FEATURE_VDEV_PROPS, SPA_FEATURE_NONE };
      172 +
 171  173  void
 172  174  zpool_feature_init(void)
 173  175  {
      176 +
      177 +        /*
      178 +         * NOTE: When either adding or changing a feature make sure
      179 +         * to update the zfs-tests zpool_get configuration file
      180 +         * at usr/src/test/zfs-tests/tests/functional/cli_root/zpool_get/zpool_get.cfg
      181 +         */
 174  182          zfeature_register(SPA_FEATURE_ASYNC_DESTROY,
 175  183              "com.delphix:async_destroy", "async_destroy",
 176  184              "Destroy filesystems asynchronously.",
 177  185              ZFEATURE_FLAG_READONLY_COMPAT, NULL);
 178  186  
 179  187          zfeature_register(SPA_FEATURE_EMPTY_BPOBJ,
 180  188              "com.delphix:empty_bpobj", "empty_bpobj",
 181  189              "Snapshots use less space.",
 182  190              ZFEATURE_FLAG_READONLY_COMPAT, NULL);
 183  191  
↓ open down ↓ 85 lines elided ↑ open up ↑
 269  277  
 270  278          static const spa_feature_t edonr_deps[] = {
 271  279                  SPA_FEATURE_EXTENSIBLE_DATASET,
 272  280                  SPA_FEATURE_NONE
 273  281          };
 274  282          zfeature_register(SPA_FEATURE_EDONR,
 275  283              "org.illumos:edonr", "edonr",
 276  284              "Edon-R hash algorithm.",
 277  285              ZFEATURE_FLAG_PER_DATASET, edonr_deps);
 278  286  
 279      -        zfeature_register(SPA_FEATURE_DEVICE_REMOVAL,
 280      -            "com.delphix:device_removal", "device_removal",
 281      -            "Top-level vdevs can be removed, reducing logical pool size.",
 282      -            ZFEATURE_FLAG_MOS, NULL);
 283      -
 284      -        static const spa_feature_t obsolete_counts_deps[] = {
 285      -                SPA_FEATURE_EXTENSIBLE_DATASET,
 286      -                SPA_FEATURE_DEVICE_REMOVAL,
 287      -                SPA_FEATURE_NONE
 288      -        };
 289      -        zfeature_register(SPA_FEATURE_OBSOLETE_COUNTS,
 290      -            "com.delphix:obsolete_counts", "obsolete_counts",
 291      -            "Reduce memory used by removed devices when their blocks are "
 292      -            "freed or remapped.",
 293      -            ZFEATURE_FLAG_READONLY_COMPAT, obsolete_counts_deps);
      287 +        zfeature_register(SPA_FEATURE_META_DEVICES,
      288 +            "com.nexenta:meta_devices", "meta_devices",
      289 +            "Dedicated devices for metadata.", ZFEATURE_FLAG_READONLY_COMPAT, NULL);
      290 +        zfeature_register(SPA_FEATURE_VDEV_PROPS,
      291 +            "com.nexenta:vdev_properties", "vdev_properties",
      292 +            "Vdev-specific properties.", ZFEATURE_FLAG_READONLY_COMPAT, NULL);
      293 +        zfeature_register(SPA_FEATURE_COS_PROPS,
      294 +            "com.nexenta:class_of_storage", "class_of_storage",
      295 +            "Properties for groups of vdevs.", ZFEATURE_FLAG_READONLY_COMPAT,
      296 +            cos_deps);
      297 +        zfeature_register(SPA_FEATURE_WBC,
      298 +            "com.nexenta:wbc", "wbc",
      299 +            "Write back cache support", 0, NULL);
 294  300  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX