Print this page
Integrated Edon-R hash function.

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 ↓ 71 lines elided ↑ open up ↑
  72   72          ZIO_CHECKSUM_INHERIT = 0,
  73   73          ZIO_CHECKSUM_ON,
  74   74          ZIO_CHECKSUM_OFF,
  75   75          ZIO_CHECKSUM_LABEL,
  76   76          ZIO_CHECKSUM_GANG_HEADER,
  77   77          ZIO_CHECKSUM_ZILOG,
  78   78          ZIO_CHECKSUM_FLETCHER_2,
  79   79          ZIO_CHECKSUM_FLETCHER_4,
  80   80          ZIO_CHECKSUM_SHA256,
  81   81          ZIO_CHECKSUM_ZILOG2,
       82 +        ZIO_CHECKSUM_EDONR512_256,
  82   83          ZIO_CHECKSUM_FUNCTIONS
  83   84  };
  84   85  
  85   86  #define ZIO_CHECKSUM_ON_VALUE   ZIO_CHECKSUM_FLETCHER_4
  86   87  #define ZIO_CHECKSUM_DEFAULT    ZIO_CHECKSUM_ON
  87   88  
  88   89  #define ZIO_CHECKSUM_MASK       0xffULL
  89   90  #define ZIO_CHECKSUM_VERIFY     (1 << 8)
  90   91  
  91   92  #define ZIO_DEDUPCHECKSUM       ZIO_CHECKSUM_SHA256
↓ open down ↓ 496 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX