summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-03-31 14:40:27 +0200
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:08:46 +0200
commitd6e9098e10e82feeddb824d7c3d0cf61aff96c29 (patch)
tree29a16b6152876e8ea74703052c94675bfdeb51ea /vl.c
parent4768fa902c3860f2fe34403e6e1c83bfca6da034 (diff)
downloadhqemu-d6e9098e10e82feeddb824d7c3d0cf61aff96c29.zip
hqemu-d6e9098e10e82feeddb824d7c3d0cf61aff96c29.tar.gz
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 <kwolf@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index fe2dd6f..0c76d33 100644
--- a/vl.c
+++ b/vl.c
@@ -1129,7 +1129,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
bdrv_flags |= ro ? 0 : BDRV_O_RDWR;
- if (bdrv_open2(dinfo->bdrv, file, bdrv_flags, drv) < 0) {
+ if (bdrv_open(dinfo->bdrv, file, bdrv_flags, drv) < 0) {
fprintf(stderr, "qemu: could not open disk image %s: %s\n",
file, strerror(errno));
return NULL;
OpenPOWER on IntegriCloud