Print this page
%B

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zio.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zio.h
↓ 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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  25   25   * Copyright (c) 2012 by Delphix. All rights reserved.
       26 + * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
  26   27   */
  27   28  
  28   29  #ifndef _ZIO_H
  29   30  #define _ZIO_H
  30   31  
  31   32  #include <sys/zfs_context.h>
  32   33  #include <sys/spa.h>
  33   34  #include <sys/txg.h>
  34   35  #include <sys/avl.h>
  35   36  #include <sys/fs/zfs.h>
↓ open down ↓ 63 lines elided ↑ open up ↑
  99  100          ZIO_COMPRESS_GZIP_1,
 100  101          ZIO_COMPRESS_GZIP_2,
 101  102          ZIO_COMPRESS_GZIP_3,
 102  103          ZIO_COMPRESS_GZIP_4,
 103  104          ZIO_COMPRESS_GZIP_5,
 104  105          ZIO_COMPRESS_GZIP_6,
 105  106          ZIO_COMPRESS_GZIP_7,
 106  107          ZIO_COMPRESS_GZIP_8,
 107  108          ZIO_COMPRESS_GZIP_9,
 108  109          ZIO_COMPRESS_ZLE,
      110 +        ZIO_COMPRESS_LZ4,
      111 +        ZIO_COMPRESS_LZ4HC,
 109  112          ZIO_COMPRESS_FUNCTIONS
 110  113  };
 111  114  
      115 +/* N.B. when altering this value, also change BOOTFS_COMPRESS_VALID below */
 112  116  #define ZIO_COMPRESS_ON_VALUE   ZIO_COMPRESS_LZJB
 113  117  #define ZIO_COMPRESS_DEFAULT    ZIO_COMPRESS_OFF
 114  118  
 115  119  #define BOOTFS_COMPRESS_VALID(compress)                 \
 116  120          ((compress) == ZIO_COMPRESS_LZJB ||             \
      121 +        (compress) == ZIO_COMPRESS_LZ4HC ||             \
      122 +        (compress) == ZIO_COMPRESS_LZ4 ||               \
 117  123          ((compress) == ZIO_COMPRESS_ON &&               \
 118  124          ZIO_COMPRESS_ON_VALUE == ZIO_COMPRESS_LZJB) ||  \
 119  125          (compress) == ZIO_COMPRESS_OFF)
 120  126  
 121  127  #define ZIO_FAILURE_MODE_WAIT           0
 122  128  #define ZIO_FAILURE_MODE_CONTINUE       1
 123  129  #define ZIO_FAILURE_MODE_PANIC          2
 124  130  
 125  131  #define ZIO_PRIORITY_NOW                (zio_priority_table[0])
 126  132  #define ZIO_PRIORITY_SYNC_READ          (zio_priority_table[1])
↓ open down ↓ 457 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX