]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Test backup job with two guest writes
authorMax Reitz <mreitz@redhat.com>
Thu, 1 Aug 2019 17:39:00 +0000 (19:39 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 6 Aug 2019 11:17:17 +0000 (13:17 +0200)
commit5f594a2e99f19ca0f7744d333bcd556f5976b78f
treeaa918a9abc4c80c763cf619cfd78b271db0e2403
parent4a5b91ca024fc6fd87021c54655af76a35f2ef1e
iotests: Test backup job with two guest writes

Perform two guest writes to not yet backed up areas of an image, where
the former touches an inner area of the latter.

Before HEAD^, copy offloading broke this in two ways:
(1) The target image differs from the reference image (what the source
    was when the backup started).
(2) But you will not see that in the failing output, because the job
    offset is reported as being greater than the job length.  This is
    because one cluster is copied twice, and thus accounted for twice,
    but of course the job length does not increase.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190801173900.23851-3-mreitz@redhat.com
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/056
tests/qemu-iotests/056.out