iotests: Test qemu-img convert of zeroed data cluster
commit51cd8bddd63540514d44808f7920811439baa253
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Dec 2021 16:46:53 +0000 (17 17:46 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Jan 2022 11:03:16 +0000 (14 12:03 +0100)
tree44915450ba6dcb3dfc7fb07dec62f7f06a500337
parentb9b8860d24676ec59c878d5206ea6bcfc87af798
iotests: Test qemu-img convert of zeroed data cluster

This demonstrates what happens when the block status changes in
sub-min_sparse granularity, but all of the parts are zeroed out. The
alignment logic in is_allocated_sectors() prevents that the target image
remains fully sparse as expected, but turns it into a data cluster of
explicit zeros.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211217164654.1184218-2-vsementsov@virtuozzo.com>
Tested-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/122
tests/qemu-iotests/122.out