]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Fix qemu-img convert -obacking_file
authorKevin Wolf <kwolf@redhat.com>
Thu, 14 Oct 2010 13:46:04 +0000 (15:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Oct 2010 12:49:35 +0000 (14:49 +0200)
commita18953fbe72ba553a564ba11fdda03aac41d4f38
tree6ee839ffe235f03cd3bb6172099b747099a3dd7b
parenta77cffe7e916f4dd28f2048982ea2e0d98143b11
qemu-img: Fix qemu-img convert -obacking_file

The old -B option caused a backing file to be used for the converted image and
to avoid copying clusters from the old backing file. When replaced with
-obacking_file, qemu-img convert does assign the backing file to the new image,
but it doesn't realize that it should avoid copying clusters from the backing
file.

This patch checks the -o options for a backing_file and applies the same logic
as for -B in this case.

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