aboutsummaryrefslogtreecommitdiff
path: root/block/blkreplay.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-04-20 08:54:28 +0800
committerKevin Wolf <kwolf@redhat.com>2017-04-27 16:01:11 +0200
commit24dfdfd0ff79ea094c41eb34d9acdc0a689d5617 (patch)
treeb0c245e4b6f6ec492ccebd62f79b24109599fbe8 /block/blkreplay.c
parent8248169497ec8b15504815e86bb85b588dbe0592 (diff)
downloadqemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.zip
qemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.tar.gz
qemu-24dfdfd0ff79ea094c41eb34d9acdc0a689d5617.tar.bz2
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 'block/blkreplay.c')
0 files changed, 0 insertions, 0 deletions