|
@@ -1472,6 +1472,7 @@ void hmp_change(Monitor *mon, const QDict *qdict)
|
|
const char *target = qdict_get_str(qdict, "target");
|
|
const char *target = qdict_get_str(qdict, "target");
|
|
const char *arg = qdict_get_try_str(qdict, "arg");
|
|
const char *arg = qdict_get_try_str(qdict, "arg");
|
|
const char *read_only = qdict_get_try_str(qdict, "read-only-mode");
|
|
const char *read_only = qdict_get_try_str(qdict, "read-only-mode");
|
|
|
|
+ bool force = qdict_get_try_bool(qdict, "force", false);
|
|
BlockdevChangeReadOnlyMode read_only_mode = 0;
|
|
BlockdevChangeReadOnlyMode read_only_mode = 0;
|
|
Error *err = NULL;
|
|
Error *err = NULL;
|
|
|
|
|
|
@@ -1508,7 +1509,8 @@ void hmp_change(Monitor *mon, const QDict *qdict)
|
|
}
|
|
}
|
|
|
|
|
|
qmp_blockdev_change_medium(true, device, false, NULL, target,
|
|
qmp_blockdev_change_medium(true, device, false, NULL, target,
|
|
- !!arg, arg, !!read_only, read_only_mode,
|
|
|
|
|
|
+ !!arg, arg, true, force,
|
|
|
|
+ !!read_only, read_only_mode,
|
|
&err);
|
|
&err);
|
|
}
|
|
}
|
|
|
|
|