Print this page
Use the LZ4 algorithm to compress metadata when the corresponding feature is enabled

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) 2013 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.
  26   27   */
  27   28  
  28   29  #ifdef _KERNEL
  29   30  #include <sys/systm.h>
  30   31  #else
  31   32  #include <errno.h>
  32   33  #include <string.h>
  33   34  #endif
  34   35  #include <sys/debug.h>
  35   36  #include <sys/fs/zfs.h>
↓ open down ↓ 126 lines elided ↑ open up ↑
 162  163              B_FALSE, NULL);
 163  164  
 164  165          zfeature_register(SPA_FEATURE_EMPTY_BPOBJ,
 165  166              "com.delphix:empty_bpobj", "empty_bpobj",
 166  167              "Snapshots use less space.", B_TRUE, B_FALSE,
 167  168              B_FALSE, NULL);
 168  169  
 169  170          zfeature_register(SPA_FEATURE_LZ4_COMPRESS,
 170  171              "org.illumos:lz4_compress", "lz4_compress",
 171  172              "LZ4 compression algorithm support.", B_FALSE, B_FALSE,
 172      -            B_FALSE, NULL);
      173 +            B_TRUE, NULL);
 173  174  
 174  175          zfeature_register(SPA_FEATURE_MULTI_VDEV_CRASH_DUMP,
 175  176              "com.joyent:multi_vdev_crash_dump", "multi_vdev_crash_dump",
 176  177              "Crash dumps to multiple vdev pools.", B_FALSE, B_FALSE,
 177  178              B_FALSE, NULL);
 178  179  
 179  180          zfeature_register(SPA_FEATURE_SPACEMAP_HISTOGRAM,
 180  181              "com.delphix:spacemap_histogram", "spacemap_histogram",
 181  182              "Spacemaps maintain space histograms.", B_TRUE, B_FALSE,
 182  183              B_FALSE, NULL);
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX