summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFam Zheng2017-04-20 02:54:28 +0200
committerKevin Wolf2017-04-27 16:01:11 +0200
commit24dfdfd0ff79ea094c41eb34d9acdc0a689d5617 (patch)
treeb0c245e4b6f6ec492ccebd62f79b24109599fbe8 /include
parentiotests: Fix typo in 026 (diff)
downloadqemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.tar.gz
qemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.tar.xz
qemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.zip
iotests: 109: Filter out "len" of failed jobs
Mirror calculates job len from current I/O progress: s->common.len = s->common.offset + (cnt + s->sectors_in_flight) * BDRV_SECTOR_SIZE; The final "len" of a failed mirror job in iotests 109 depends on the subtle timing of the completion of read and write issued in the first mirror iteration. The second iteration may or may not have run when the I/O error happens, resulting in non-deterministic output of the BLOCK_JOB_COMPLETED event text. Similar to what was done in a752e4786, filter out the field to make the test robust. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions