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 <hutter2@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes #17270
This commit is contained in:
Alexander Motin 2025-04-24 20:49:09 -04:00 committed by GitHub
parent 1ef706c4ad
commit d947b9aedd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,10 +148,11 @@ create_zvols
do_zvol_stress do_zvol_stress
# Inject some errors, and verify we see some IO errors in zpool status # Inject some errors, and verify we see some IO errors in zpool status
sync_pool $TESTPOOL
for DISK in $DISKS ; do for DISK in $DISKS ; do
log_must zinject -d $DISK -f 10 -e io -T write $TESTPOOL log_must zinject -d $DISK -f 10 -e io -T write $TESTPOOL
done 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 sync_pool $TESTPOOL
log_must zinject -c all log_must zinject -c all