]> git.proxmox.com Git - qemu.git/blobdiff - vl.c
Replace calls of old bdrv_open
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index fe2dd6fa917e14802a5c63c357f538db656e422f..0c76d3393dd87d641533eaeadc5ef780acec126f 100644 (file)
--- 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;