]> git.proxmox.com Git - qemu.git/commit
qemu-iotests: add tests for rebasing zero clusters
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Mar 2013 14:58:13 +0000 (15:58 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 17 May 2013 18:10:52 +0000 (13:10 -0500)
commit7f28f0f1f6735a25e5e2a028adccc54f3143fac9
tree608078bd89c970fb326563f6dd193f67015ae9e5
parent45bbe1fa897937e38d7db18ce214c28b01bab0ec
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>
(cherry picked from commit acbf30ec601b1f817febc4500025b7c4181312c4)

Conflicts:

tests/qemu-iotests/group

* fixed up to account for tests 48/49 being missing from 1.4

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/050 [new file with mode: 0755]
tests/qemu-iotests/050.out [new file with mode: 0644]
tests/qemu-iotests/group