From fbe2d8163e8900fe22c67f55bd09ebc6f322f430 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 20 Sep 2016 13:38:46 +0200 Subject: block: Accept device model name for eject In order to remove the need for BlockBackend names in the external API, we want to allow qdev device names in all device related commands. This converts eject to accept a qdev device name. Signed-off-by: Kevin Wolf --- hmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hmp.c') diff --git a/hmp.c b/hmp.c index 0a16aefc2a..09827b3ec4 100644 --- a/hmp.c +++ b/hmp.c @@ -1376,7 +1376,7 @@ void hmp_eject(Monitor *mon, const QDict *qdict) const char *device = qdict_get_str(qdict, "device"); Error *err = NULL; - qmp_eject(device, true, force, &err); + qmp_eject(true, device, false, NULL, true, force, &err); hmp_handle_error(mon, &err); } -- cgit v1.2.1