qcow2: Add iotest for an image with header.refcount_table_offset == 0
commit5a45da5ef8f8fa9c10706097b30fc766217a8ebb
authorAlberto Garcia <berto@igalia.com>
Fri, 3 Nov 2017 14:18:54 +0000 (3 16:18 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 14 Nov 2017 17:06:25 +0000 (14 18:06 +0100)
tree560e4be29925ecba096e030076618644ca98fce5
parent951053a9ec1c47edf4b2549ef58d82aee8a42a7f
qcow2: Add iotest for an image with header.refcount_table_offset == 0

This patch adds a simple iotest in which we try to write to an image
with the refcount table offset set to 0.

This scenario was already handled by the existing consistency checks,
but we add an explicit test case for completeness.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: feeceada92486bb8790b90f303fc9fe82a27391a.1509718618.git.berto@igalia.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/060
tests/qemu-iotests/060.out