]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: use openssl for md5digest and sha256digest
authorTino Reichardt <milky-zfs@mcmilk.de>
Thu, 19 Sep 2024 22:53:57 +0000 (00:53 +0200)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 22:53:57 +0000 (15:53 -0700)
commit4bf6a2ab87c98efe1b010b403a991500d689112a
treea8d9c504b3d559400cee5e1a4c416a9bbc649dc1
parente8ede2ba7807bdc1f6a52df42bd64c4376eef2df
ZTS: use openssl for md5digest and sha256digest

On larger files this should improve the speed.

Sample values of my system:

[mcmilk@xz]$ time dd if=/dev/zero bs=128k count=1k | sha256sum
254bcc3fc4f27172636df4bf32de9f107f620d559b20d760197e452b97453917  -
real    0m1,050s
user    0m0,985s
sys     0m0,153s

[mcmilk@xz]$ time dd if=/dev/zero bs=128k count=1k | openssl sha256 -r
254bcc3fc4f27172636df4bf32de9f107f620d559b20d760197e452b97453917 *stdin
real    0m0,254s
user    0m0,206s
sys     0m0,160s

I think cli_root/zdb/zdb_backup.ksh runs also an FreeBSD and I needed to
include the sysutils/coreutils package for the FreeBSD tests within the
QEMU patchset.

This could be reverted, when this pull request gets upstream

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Closes #16543
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_backup.ksh
tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh