Print this page
4185 New hash algorithm support

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zfs_fletcher.h
          +++ new/usr/src/common/zfs/zfs_fletcher.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2013 Saso Kiselkov. All rights reserved.
       27 + */
  25   28  
  26   29  #ifndef _ZFS_FLETCHER_H
  27   30  #define _ZFS_FLETCHER_H
  28   31  
  29   32  #include <sys/types.h>
  30   33  #include <sys/spa.h>
  31   34  
  32   35  #ifdef  __cplusplus
  33   36  extern "C" {
  34   37  #endif
  35   38  
  36   39  /*
  37   40   * fletcher checksum functions
  38   41   */
  39   42  
  40      -void fletcher_2_native(const void *, uint64_t, zio_cksum_t *);
  41      -void fletcher_2_byteswap(const void *, uint64_t, zio_cksum_t *);
  42      -void fletcher_4_native(const void *, uint64_t, zio_cksum_t *);
  43      -void fletcher_4_byteswap(const void *, uint64_t, zio_cksum_t *);
       43 +void fletcher_2_native(const void *, uint64_t, const zio_cksum_salt_t *,
       44 +    const void *, zio_cksum_t *);
       45 +void fletcher_2_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
       46 +    const void *, zio_cksum_t *);
       47 +void fletcher_4_native(const void *, uint64_t, const zio_cksum_salt_t *,
       48 +    const void *, zio_cksum_t *);
       49 +void fletcher_4_byteswap(const void *, uint64_t, const zio_cksum_salt_t *,
       50 +    const void *, zio_cksum_t *);
  44   51  void fletcher_4_incremental_native(const void *, uint64_t,
  45   52      zio_cksum_t *);
  46   53  void fletcher_4_incremental_byteswap(const void *, uint64_t,
  47   54      zio_cksum_t *);
  48   55  
  49   56  #ifdef  __cplusplus
  50   57  }
  51   58  #endif
  52   59  
  53   60  #endif  /* _ZFS_FLETCHER_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX