diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-09-20 13:38:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-09-23 13:44:47 +0200 |
commit | 70e2cb3bd75fc7aa988f81eae854001e8fcbffe1 (patch) | |
tree | f5b489862fe403b946d72f2d30097c54816b58cc /hmp.c | |
parent | fbe2d8163e8900fe22c67f55bd09ebc6f322f430 (diff) |
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 <kwolf@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1422,8 +1422,9 @@ void hmp_change(Monitor *mon, const QDict *qdict) } } - qmp_blockdev_change_medium(device, target, !!arg, arg, - !!read_only, read_only_mode, &err); + qmp_blockdev_change_medium(true, device, false, NULL, target, + !!arg, arg, !!read_only, read_only_mode, + &err); if (err && error_get_class(err) == ERROR_CLASS_DEVICE_ENCRYPTED) { error_free(err); |