]> git.proxmox.com Git - qemu.git/commit - block/vmdk.c
vmdk: Read footer for streamOptimized images
authorKevin Wolf <kwolf@redhat.com>
Thu, 16 Aug 2012 08:39:33 +0000 (10:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Aug 2012 11:27:02 +0000 (13:27 +0200)
commit65bd155c7356d448ffee7f89149c4d473076b0ba
treea9cb031d47c4179244cc06f6c476c7ba1d919b4f
parent7a736bfa4e0a58087054cad68a1d4b3804bbb708
vmdk: Read footer for streamOptimized images

The footer takes precedence over the header when it exists. It contains
the real grain directory offset that is missing in the header. Without
this patch, streamOptimized images with a footer cannot be read.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/vmdk.c