Print this page
Integrated Edon-R hash function.

Split Close
Expand all
Collapse all
          --- old/usr/src/grub/grub-0.97/stage2/fsys_zfs.c
          +++ new/usr/src/grub/grub-0.97/stage2/fsys_zfs.c
↓ open down ↓ 137 lines elided ↑ open up ↑
 138  138          {{NULL,                 NULL},                  0, 0,   "inherit"},
 139  139          {{NULL,                 NULL},                  0, 0,   "on"},
 140  140          {{zio_checksum_off,     zio_checksum_off},      0, 0,   "off"},
 141  141          {{zio_checksum_SHA256,  zio_checksum_SHA256},   1, 1,   "label"},
 142  142          {{zio_checksum_SHA256,  zio_checksum_SHA256},   1, 1,   "gang_header"},
 143  143          {{NULL,                 NULL},                  0, 0,   "zilog"},
 144  144          {{fletcher_2_native,    fletcher_2_byteswap},   0, 0,   "fletcher2"},
 145  145          {{fletcher_4_native,    fletcher_4_byteswap},   1, 0,   "fletcher4"},
 146  146          {{zio_checksum_SHA256,  zio_checksum_SHA256},   1, 0,   "SHA256"},
 147  147          {{NULL,                 NULL},                  0, 0,   "zilog2"},
      148 +        {{zio_checksum_EdonR512_256,    zio_checksum_EdonR512_256_byteswap},
      149 +            1, 0,       "edonr512/256"}
 148  150  };
 149  151  
 150  152  /*
 151  153   * zio_checksum_verify: Provides support for checksum verification.
 152  154   *
 153  155   * Fletcher2, Fletcher4, and SHA256 are supported.
 154  156   *
 155  157   * Return:
 156  158   *      -1 = Failure
 157  159   *       0 = Success
↓ open down ↓ 798 lines elided ↑ open up ↑
 956  958          return (0);
 957  959  }
 958  960  
 959  961  /*
 960  962   * List of pool features that the grub implementation of ZFS supports for
 961  963   * read. Note that features that are only required for write do not need
 962  964   * to be listed here since grub opens pools in read-only mode.
 963  965   */
 964  966  static const char *spa_feature_names[] = {
 965  967          "org.illumos:lz4_compress",
      968 +        "org.illumos:edonr_cksum",
 966  969          NULL
 967  970  };
 968  971  
 969  972  /*
 970  973   * Checks whether the MOS features that are active are supported by this
 971  974   * (GRUB's) implementation of ZFS.
 972  975   *
 973  976   * Return:
 974  977   *      0: Success.
 975  978   *      errnum: Failure.
↓ open down ↓ 820 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX