mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-23 15:04:59 +03:00
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:
parent
1ef706c4ad
commit
d947b9aedd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user