OSDN Git Service

iotests: add test for unaligned granularity bitmap backup
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 10 Aug 2020 09:55:23 +0000 (11:55 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 11 Aug 2020 07:29:31 +0000 (09:29 +0200)
commit1f3765b652930a3b485f1a67542c2410c3774abe
treea3e801dddce7effd0fbbe422468540564a780ecf
parent7661a886a17ccf3aff398b124baad9dd95f64bed
iotests: add test for unaligned granularity bitmap backup

Start a VM with a 4097 byte image attached, add a 4096 byte granularity
dirty bitmap, mark it dirty, and then do a backup.

This used to run into an assert and fail, check that it works as
expected and also check the created image to ensure that misaligned
backups in general work correctly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Message-Id: <20200810095523.15071-2-s.reiter@proxmox.com>
[mreitz: Drop bitmap, and do not write past the image's end]
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/304 [new file with mode: 0755]
tests/qemu-iotests/304.out [new file with mode: 0644]
tests/qemu-iotests/group