]> git.proxmox.com Git - mirror_qemu.git/blobdiff - monitor.c
Replace calls of old bdrv_open
[mirror_qemu.git] / monitor.c
index ba60f975af9fa91e347ca772fd47d7a76344a801..c25d551f5c31145406e399d612ec4a0205e54a96 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -1099,7 +1099,7 @@ static int do_change_block(Monitor *mon, const char *device,
     if (eject_device(mon, bs, 0) < 0) {
         return -1;
     }
-    if (bdrv_open2(bs, filename, BDRV_O_RDWR, drv) < 0) {
+    if (bdrv_open(bs, filename, BDRV_O_RDWR, drv) < 0) {
         qerror_report(QERR_OPEN_FILE_FAILED, filename);
         return -1;
     }