]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmdk: Read footer for streamOptimized images
authorKevin Wolf <kwolf@redhat.com>
Thu, 16 Aug 2012 08:39:33 +0000 (10:39 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Aug 2012 06:50:01 +0000 (01:50 -0500)
commitd438650fa512f944ca4af1a08ab132712c50b684
tree6e0d7e3b2baf6dd9e74142187bae13ccc56ffe31
parent07ab4fc1ef2e628209ecab97475ea45071b19ec8
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>
(cherry picked from commit 65bd155c7356d448ffee7f89149c4d473076b0ba)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/vmdk.c