From d947b9aedd137c3571802bfbc8f3f2d18ad5410b Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 24 Apr 2025 20:49:09 -0400 Subject: [PATCH] ZTS: Make zvol_stress write some more Sometimes it fails unable to see any injected write errors. I guess writing 25KB of zeroes might be not enough to trigger errors with probability set to 10%. Lets try to write more. Reviewed-by: Tony Hutter Signed-off-by: Alexander Motin Sponsored by: iXsystems, Inc. Closes #17270 --- .../tests/functional/zvol/zvol_stress/zvol_stress.ksh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh b/tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh index a3f4ae1a3..1805e597e 100755 --- a/tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh +++ b/tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh @@ -148,10 +148,11 @@ create_zvols do_zvol_stress # Inject some errors, and verify we see some IO errors in zpool status +sync_pool $TESTPOOL for DISK in $DISKS ; do log_must zinject -d $DISK -f 10 -e io -T write $TESTPOOL done -log_must dd if=/dev/zero of=$ZVOL_DEVDIR/$TESTPOOL/testvol1 bs=512 count=50 +log_must dd if=/dev/urandom of=$ZVOL_DEVDIR/$TESTPOOL/testvol1 bs=16M count=1 sync_pool $TESTPOOL log_must zinject -c all