]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img rebase: Fix for undersized backing files
authorKevin Wolf <kwolf@redhat.com>
Wed, 7 Dec 2011 11:42:10 +0000 (12:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2011 11:40:08 +0000 (12:40 +0100)
commit87a1b3e381c282b143023c411df284175f0b656b
tree6d745436e5ddb479ac315ccceac8803c4a7e35f9
parentb9c532903fa528891c0eceb34ea40a0c47bfb5db
qemu-img rebase: Fix for undersized backing files

Backing files may be smaller than the corresponding COW file. When
reading directly from the backing file, qemu-img rebase must consider
this and assume zero sectors after the end of backing files.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-img.c