qemu-iotests: Some more write_zeroes tests
commit1ef7d010216b7d1046a3f6e31b49093addad01ce
authorKevin Wolf <kwolf@redhat.com>
Tue, 17 May 2016 16:37:39 +0000 (17 18:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (19 16:45 +0200)
tree020068271bfc41209f786ea26eac5b3dc4f7c4ba
parent5efdf53227809a0da436dd63d7ed19c99044ecbd
qemu-iotests: Some more write_zeroes tests

This covers some more write_zeroes cases which are relevant for the
recent qcow2 optimisations that check the allocation status of the
backing file for partial cluster write_zeroes requests.

This needs to be separate from 034 because we can only support qcow2 in
this test case for multiple reasons: We check the allocation status
after write_zeroes with 'qemu-img map' and the optimised behaviour that
produces zero clusters is only implemented in qcow2; second, the map
command returns offsets that are qcow2 specific; and finally, we also
use 512 byte clusters which aren't supported for formats like qed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/154 [new file with mode: 0755]
tests/qemu-iotests/154.out [new file with mode: 0644]
tests/qemu-iotests/group