@@ -73,8 +73,9 @@ log_must eval [[ "$(get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV3)" == "off" ]]
73
73
log_must zinject -d $BAD_VDEV1 -D200:1 -T read $TESTPOOL2
74
74
75
75
# Do some reads and wait for us to sit out
76
- for i in {1..100} ; do
77
- dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null
76
+ for i in {0..99} ; do
77
+ dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null &
78
+ dd if=/$TESTPOOL2 /bigfile skip=$(( i + 100 )) bs=2M count=1 of=/dev/null
78
79
79
80
sit_out=$( get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV1 )
80
81
if [[ " $sit_out " == " on" ]] ; then
@@ -85,8 +86,9 @@ log_must test "$(get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV1)" == "on"
85
86
86
87
log_must zinject -d $BAD_VDEV2 -D200:1 -T read $TESTPOOL2
87
88
# Do some reads and wait for us to sit out
88
- for i in {1..100} ; do
89
- dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null
89
+ for i in {0..99} ; do
90
+ dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null &
91
+ dd if=/$TESTPOOL2 /bigfile skip=$(( i + 100 )) bs=2M count=1 of=/dev/null
90
92
91
93
sit_out=$( get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV2 )
92
94
if [[ " $sit_out " == " on" ]] ; then
@@ -97,8 +99,9 @@ log_must test "$(get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV2)" == "on"
97
99
98
100
log_must zinject -d $BAD_VDEV3 -D200:1 -T read $TESTPOOL2
99
101
# Do some reads and wait for us to sit out
100
- for i in {1..100} ; do
101
- dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null
102
+ for i in {0..99} ; do
103
+ dd if=/$TESTPOOL2 /bigfile skip=$i bs=2M count=1 of=/dev/null &
104
+ dd if=/$TESTPOOL2 /bigfile skip=$(( i + 100 )) bs=2M count=1 of=/dev/null
102
105
103
106
sit_out=$( get_vdev_prop sit_out $TESTPOOL2 $BAD_VDEV3 )
104
107
if [[ " $sit_out " == " on" ]] ; then
0 commit comments