diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |