]> git.proxmox.com Git - mirror_qemu.git/commit - block/vmdk.c
vmdk: push vmdk_read_desc up to caller
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Feb 2014 13:44:03 +0000 (14:44 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 20:02:24 +0000 (21:02 +0100)
commitd1833ef52be349e41d17e9c5ddaea8bb4ad3a7fb
tree401180f20aaed26222a2fbf784bdac4dc995e044
parenta8842e6d2acc815e9660cc743bd0b0daba18c935
vmdk: push vmdk_read_desc up to caller

Currently, we just try reading a VMDK file as both image and descriptor.
This makes it hard to choose which of the two attempts gave the best error.
We'll decide in advance if the file looks like an image or a descriptor,
and this patch is the first step to that end.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c