From d6e9098e10e82feeddb824d7c3d0cf61aff96c29 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Wed, 31 Mar 2010 14:40:27 +0200 Subject: Replace calls of old bdrv_open What is known today as bdrv_open2 becomes the new bdrv_open. All remaining callers of the old function are converted to the new one. In some places they even know the right format, so they should have used bdrv_open2 from the beginning. Signed-off-by: Kevin Wolf --- hw/xen_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw') diff --git a/hw/xen_disk.c b/hw/xen_disk.c index beadf90a6b..95017a1f5c 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -629,7 +629,7 @@ static int blk_init(struct XenDevice *xendev) xen_be_printf(&blkdev->xendev, 2, "create new bdrv (xenbus setup)\n"); blkdev->bs = bdrv_new(blkdev->dev); if (blkdev->bs) { - if (bdrv_open2(blkdev->bs, blkdev->filename, qflags, + if (bdrv_open(blkdev->bs, blkdev->filename, qflags, bdrv_find_whitelisted_format(blkdev->fileproto)) != 0) { bdrv_delete(blkdev->bs); -- cgit v1.2.3