]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Fix src_offset in copy offloading
authorFam Zheng <famz@redhat.com>
Fri, 29 Jun 2018 06:03:26 +0000 (14:03 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (14:20 +0200)
commite06f4639d8a93703eecc3aad06c8a3e9b2ef4968
tree08b06d2bb4ec3f9603d71130c1d3ec1f62da75e4
parent33d70fb6faa3b8b2aac47a2052a4943c94fc48a2
qcow2: Fix src_offset in copy offloading

Not updating src_offset will result in wrong data being written to dst
image.

Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
tests/qemu-iotests/063
tests/qemu-iotests/063.out