aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-09-20 13:38:46 +0200
committerKevin Wolf <kwolf@redhat.com>2016-09-23 13:40:45 +0200
commitfbe2d8163e8900fe22c67f55bd09ebc6f322f430 (patch)
treeb646f9d69084bc651df2a79975a807cbe698b42e /hmp.c
parent00949babe90c528df1ffb79439d632c7bd4f6c42 (diff)
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 <kwolf@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 1 insertions, 1 deletions
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);
}