]> git.proxmox.com Git - qemu.git/commit
VMDK: bugfix, open Haiku vmdk image
authorFam Zheng <famcool@gmail.com>
Fri, 12 Aug 2011 15:19:33 +0000 (23:19 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 6 Sep 2011 10:33:03 +0000 (12:33 +0200)
commitf16f509d17de295300404f94598b558ac5b8cfdd
treeba33fa9d48417cbb80d022b5ba2d8b5192b85f73
parent6c031aac4d697d7acbfd5eaa73f47d494cee9937
VMDK: bugfix, open Haiku vmdk image

Haiku provides a specially formed vmdk image, which let qemu abort. It a
combination of sparse header and flat data (i.e. with not l1/l2 table at
all). The fix is turn to descriptor when sparse header is zero in field
'capacity'.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c