]> git.proxmox.com Git - qemu.git/commit
vmdk: Fix backing file handling
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Jul 2009 06:20:41 +0000 (08:20 +0200)
committerGlauber Costa <glommer@redhat.com>
Thu, 23 Jul 2009 14:39:19 +0000 (10:39 -0400)
commitb358a08e7b84176f6dc5a402140f4d346249462d
tree4f43b4b94a0c87d571743a45202f95a572dc4d79
parentf81eed9ddba94918cc9d8c8ffeea45f5b5ef2832
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>
Signed-off-by: Glauber Costa <glommer@redhat.com>
block-vmdk.c