]> Git Repo - qemu.git/commit - hw/xen_devconfig.c
xen: Don't peek behind the BlockDriverState abstraction
authorMarkus Armbruster <[email protected]>
Wed, 13 Jun 2012 08:11:50 +0000 (10:11 +0200)
committerKevin Wolf <[email protected]>
Fri, 15 Jun 2012 12:03:43 +0000 (14:03 +0200)
commit093003b1d3d7453d65bcbe8ad7e911950fc076f5
tree22913be6da30b0869af11adb82704641aef05055
parent8814a05112632ec30f0b5b41d7b2cc639199c7f9
xen: Don't peek behind the BlockDriverState abstraction

First offender is xen_config_dev_blk()'s use of disk->bdrv->filename.
Get the filename from disk->opts instead.  Same result, except for
snapshots: there, we now get the filename specified by the user
instead of the name of the temporary image created by bdrv_open().
Should be an improvement.

Second offender is blk_init()'s use of blkdev->bs->drv->format_name.
Simply use the appropriate interface to get the format name.

Signed-off-by: Markus Armbruster <[email protected]>
Acked-by: Stefano Stabellini <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/xen_devconfig.c
hw/xen_disk.c
This page took 0.027255 seconds and 4 git commands to generate.