Skip to content

Commit d947b9a

Browse files
authored
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 <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #17270
1 parent 1ef706c commit d947b9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/zfs-tests/tests/functional/zvol/zvol_stress/zvol_stress.ksh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,11 @@ create_zvols
148148
do_zvol_stress
149149

150150
# Inject some errors, and verify we see some IO errors in zpool status
151+
sync_pool $TESTPOOL
151152
for DISK in $DISKS ; do
152153
log_must zinject -d $DISK -f 10 -e io -T write $TESTPOOL
153154
done
154-
log_must dd if=/dev/zero of=$ZVOL_DEVDIR/$TESTPOOL/testvol1 bs=512 count=50
155+
log_must dd if=/dev/urandom of=$ZVOL_DEVDIR/$TESTPOOL/testvol1 bs=16M count=1
155156
sync_pool $TESTPOOL
156157
log_must zinject -c all
157158

0 commit comments

Comments
 (0)