Print this page
%B

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zio_compress.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zio_compress.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 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
       26 +/*
       27 + * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
       28 + */
  26   29  
  27   30  #ifndef _SYS_ZIO_COMPRESS_H
  28   31  #define _SYS_ZIO_COMPRESS_H
  29   32  
  30   33  #include <sys/zio.h>
  31   34  
  32   35  #ifdef  __cplusplus
  33   36  extern "C" {
  34   37  #endif
  35   38  
↓ open down ↓ 25 lines elided ↑ open up ↑
  61   64  extern int lzjb_decompress(void *src, void *dst, size_t s_len, size_t d_len,
  62   65      int level);
  63   66  extern size_t gzip_compress(void *src, void *dst, size_t s_len, size_t d_len,
  64   67      int level);
  65   68  extern int gzip_decompress(void *src, void *dst, size_t s_len, size_t d_len,
  66   69      int level);
  67   70  extern size_t zle_compress(void *src, void *dst, size_t s_len, size_t d_len,
  68   71      int level);
  69   72  extern int zle_decompress(void *src, void *dst, size_t s_len, size_t d_len,
  70   73      int level);
       74 +extern size_t lz4_compress(void *src, void *dst, size_t s_len, size_t d_len,
       75 +    int level);
       76 +extern int lz4_decompress(void *src, void *dst, size_t s_len, size_t d_len,
       77 +    int level);
  71   78  
  72   79  /*
  73   80   * Compress and decompress data if necessary.
  74   81   */
  75   82  extern size_t zio_compress_data(enum zio_compress c, void *src, void *dst,
  76   83      size_t s_len);
  77   84  extern int zio_decompress_data(enum zio_compress c, void *src, void *dst,
  78   85      size_t s_len, size_t d_len);
  79   86  
  80   87  #ifdef  __cplusplus
  81   88  }
  82   89  #endif
  83   90  
  84   91  #endif  /* _SYS_ZIO_COMPRESS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX