ZTS: Replace MD5 and SHA256 wit XXH128

For data integrity checks as done in ZTS, the verification for
unintended data corruption with xxhash128 should be a lot faster
and perfectly usable.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16577
This commit is contained in:
Tino Reichardt
2024-09-28 20:24:05 +04:00
committed by GitHub
parent 834b90fb81
commit b1958b531b
35 changed files with 117 additions and 138 deletions
@@ -77,7 +77,7 @@ function test_file_integrity
typeset -r clone=$2
typeset -r filesize=$3
typeset -r clone_checksum=$(sha256digest $clone)
typeset -r clone_checksum=$(xxh128digest $clone)
if [[ $original_checksum != $clone_checksum ]]; then
log_fail "Clone $clone is corrupted with file size $filesize"
@@ -171,7 +171,7 @@ function bclone_test
dsize=0
fi
typeset -r original_checksum=$(sha256digest $original)
typeset -r original_checksum=$(xxh128digest $original)
sync_pool $TESTPOOL