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 15:58:47 +0000 (10:58 -0500)
commit107af76d17e3a6a4f95ec5c0e1ea84793cf656af
treec54ba964357823d7f3cea56f6832121bcc6e31a1
parent39c018186ff93f88e0c105e78d36462d4579c015
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