From 70e2cb3bd75fc7aa988f81eae854001e8fcbffe1 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 20 Sep 2016 13:38:47 +0200 Subject: block: Accept device model name for blockdev-change-medium 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 blockdev-change-medium to accept a qdev device name. Signed-off-by: Kevin Wolf --- qmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qmp.c') diff --git a/qmp.c b/qmp.c index 6733463fa2..8b4bc980f1 100644 --- a/qmp.c +++ b/qmp.c @@ -436,8 +436,8 @@ void qmp_change(const char *device, const char *target, if (strcmp(device, "vnc") == 0) { qmp_change_vnc(target, has_arg, arg, errp); } else { - qmp_blockdev_change_medium(device, target, has_arg, arg, false, 0, - errp); + qmp_blockdev_change_medium(true, device, false, NULL, target, + has_arg, arg, false, 0, errp); } } -- cgit v1.2.1