]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: Make 137 work with data_file
authorMax Reitz <mreitz@redhat.com>
Thu, 7 Nov 2019 16:37:05 +0000 (17:37 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jan 2020 12:43:07 +0000 (13:43 +0100)
commite66566e6a77c283c0908375bb58037a0ae7ad703
tree3bfb9da40e990390d30516d8a85df6ec1db12701
parentd327a942aaf0561c2bb0e6ffe09848665b3c68d8
iotests: Make 137 work with data_file

When using an external data file, there are no refcounts for data
clusters.  We thus have to adjust the corruption test in this patch to
not be based around a data cluster allocation, but the L2 table
allocation (L2 tables are still refcounted with external data files).

Furthermore, we should not print qcow2.py's list of incompatible
features because it differs depending on whether there is an external
data file or not.

With those two changes, the test will work both with and without
external data files (once that options works with the iotests at all).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-id: 20191107163708.833192-20-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/137
tests/qemu-iotests/137.out