qemu-iotests: add tests for rebasing zero clusters
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Mar 2013 14:58:13 +0000 (15:58 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:51 +0000 (16:07 +0100)
commitacbf30ec601b1f817febc4500025b7c4181312c4
treebecdaf16b56163b25bb6ebf0e034928efffcded1
parent485e3ce88e8af0e5311dd626f399b3a1e0846dd6
qemu-iotests: add tests for rebasing zero clusters

If zero clusters are erroneously treated as unallocated, "qemu-img rebase"
will copy the backing file's contents onto the cluster.

The bug existed also in image streaming, but since the root cause was in
qcow2's is_allocated implementation it is enough to test it with qemu-img.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/qemu-iotests/050 [new file with mode: 0755]
tests/qemu-iotests/050.out [new file with mode: 0644]
tests/qemu-iotests/group