diff options
author | Tony Hutter <[email protected]> | 2024-08-14 12:27:07 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-14 12:27:07 -0700 |
commit | d06de4f007947a9bc73f5796dd57a70ede3a525f (patch) | |
tree | 942a368ceccd1c8f522b54adb90cf11c5848cf35 | |
parent | 2633075e0905bbe4989a469c7d5892f2cf1108be (diff) |
ZTS: Use /dev/urandom instead of /dev/random
Use /dev/urandom so we never have to wait on entropy.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #16442
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib b/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib index e204f43b3..795e71b26 100644 --- a/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib +++ b/tests/zfs-tests/tests/functional/alloc_class/alloc_class.kshlib @@ -55,7 +55,7 @@ function display_status ((ret |= $?)) typeset mntpnt=$(get_prop mountpoint $pool) - dd if=/dev/random of=$mntpnt/testfile.$$ & + dd if=/dev/urandom of=$mntpnt/testfile.$$ & typeset pid=$! zpool iostat -v 1 3 > /dev/null diff --git a/tests/zfs-tests/tests/functional/block_cloning/block_cloning_rlimit_fsize.ksh b/tests/zfs-tests/tests/functional/block_cloning/block_cloning_rlimit_fsize.ksh index a8a64e524..3632fc9a4 100755 --- a/tests/zfs-tests/tests/functional/block_cloning/block_cloning_rlimit_fsize.ksh +++ b/tests/zfs-tests/tests/functional/block_cloning/block_cloning_rlimit_fsize.ksh @@ -54,7 +54,7 @@ log_must truncate -s 1G $VDEV log_must zpool create -o feature@block_cloning=enabled $TESTPOOL $VDEV -log_must dd if=/dev/random of=/$TESTPOOL/file1 bs=1 count=1000 +log_must dd if=/dev/urandom of=/$TESTPOOL/file1 bs=1 count=1000 ulimit -f 2 log_must clonefile -f /$TESTPOOL/file1 /$TESTPOOL/file2 0 0 all diff --git a/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh b/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh index 041dadb1e..05f3ac708 100755 --- a/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh +++ b/tests/zfs-tests/tests/functional/fault/suspend_resume_single.ksh @@ -42,7 +42,7 @@ log_onexit cleanup log_assert "ensure single-disk pool resumes properly after suspend and clear" # create a file, and take a checksum, so we can compare later -log_must dd if=/dev/random of=$DATAFILE bs=128K count=1 +log_must dd if=/dev/urandom of=$DATAFILE bs=128K count=1 typeset sum1=$(cat $DATAFILE | md5sum) # make a debug device that we can "unplug" |