]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmdk: Fix backing file handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Jul 2009 06:20:41 +0000 (08:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jul 2009 20:41:01 +0000 (15:41 -0500)
commite88802852d0e5201e21dad0d773a6bff478594b5
tree4079bb51af22577edbcf65e2eb1a26de10722721
parenta57ac1d342a32875bd5a835ea01925980e2f90b4
vmdk: Fix backing file handling

Instead of storing the backing file in its own BlockDriverState, VMDK uses the
BlockDriverState of the raw image file it opened. This is wrong and breaks
functions that access the backing file or protocols. This fix replaces all
occurrences of s->hd->backing_* with bs->backing_*.

This fixes qemu-iotests failure in 020 (Commit changes to backing file).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/vmdk.c