vmdk: Fix backing file handling
commitb171271a50be01f2690077970fa7e60b8e8eb9d9
authorKevin Wolf <kwolf@redhat.com>
Fri, 17 Jul 2009 06:20:41 +0000 (17 08:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Jul 2009 15:58:47 +0000 (22 10:58 -0500)
treec54ba964357823d7f3cea56f6832121bcc6e31a1
parent14658cd151da8e85e04946ac41f02676d53bc12d
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