qemu-iotests: allow qcow2 external discarded clusters to contain stale data
commit3fb61087074474b088fee23bb81ffd258cb9cb2a
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Apr 2020 19:10:06 +0000 (9 15:10 -0400)
committerKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 15:51:06 +0000 (30 17:51 +0200)
treebf089acc40162da08156b13aeed858b9b575422c
parenta50c1f57e491ba17c0fcb7d285dfe04770be0a70
qemu-iotests: allow qcow2 external discarded clusters to contain stale data

Test 244 checks the expected behavior of qcow2 external data files
with respect to zero and discarded clusters.  Filesystems however
are free to ignore discard requests, and this seems to be the
case for overlayfs.  Relax the tests to skip checks on the
external data file for discarded areas, which implies not using
qemu-img compare in the data_file_raw=on case.

This fixes docker tests on RHEL8.

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-block@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200409191006.24429-1-pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/244
tests/qemu-iotests/244.out