]> git.proxmox.com Git - qemu.git/commit
qemu-img rebase: Fix output image corruption
authorKevin Wolf <kwolf@redhat.com>
Thu, 29 Apr 2010 12:47:48 +0000 (14:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 3 May 2010 08:07:32 +0000 (10:07 +0200)
commitcc60e327c0988a5e5288cf7bb78cd9848db800ab
tree94ee36ba06dbd3536c8131992b993c331dcd84a2
parent294cc35f3db84017e0c176c15dd9a1b711e8354d
qemu-img rebase: Fix output image corruption

qemu-img rebase must always give clusters in the COW file priority over those
in the backing file. As it failed to use number of non-allocated clusters but
assumed the maximum, it was possible that allocated clusters were taken from
the backing file instead, leading to a corrupted output image.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c