iotests: Convert to preallocated encrypted qcow2
commit5a840549ee68a6c2bbcee4c402793375646bdc92
authorMax Reitz <mreitz@redhat.com>
Wed, 24 Jul 2019 17:12:37 +0000 (24 19:12 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 19 Aug 2019 15:13:26 +0000 (19 17:13 +0200)
tree8c76feb9d1c3aeaf71bd1bb90719b713e56de956
parent9956688a8f05ddafb36b9d50d1ff7fbf67464275
iotests: Convert to preallocated encrypted qcow2

Add a test case for converting an empty image (which only returns zeroes
when read) to a preallocated encrypted qcow2 image.
qcow2_has_zero_init() should return 0 then, thus forcing qemu-img
convert to create zero clusters.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190724171239.8764-10-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/188
tests/qemu-iotests/188.out