aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-09-20 13:38:47 +0200
committerKevin Wolf <kwolf@redhat.com>2016-09-23 13:44:47 +0200
commit70e2cb3bd75fc7aa988f81eae854001e8fcbffe1 (patch)
treef5b489862fe403b946d72f2d30097c54816b58cc /ui
parentfbe2d8163e8900fe22c67f55bd09ebc6f322f430 (diff)
downloadqemu-70e2cb3bd75fc7aa988f81eae854001e8fcbffe1.zip
qemu-70e2cb3bd75fc7aa988f81eae854001e8fcbffe1.tar.gz
qemu-70e2cb3bd75fc7aa988f81eae854001e8fcbffe1.tar.bz2
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 'ui')
-rw-r--r--ui/cocoa.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index a847737..ba0e98a 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1119,8 +1119,10 @@ QemuCocoaView *cocoaView;
}
Error *err = NULL;
- qmp_blockdev_change_medium([drive cStringUsingEncoding:
+ qmp_blockdev_change_medium(true,
+ [drive cStringUsingEncoding:
NSASCIIStringEncoding],
+ false, NULL,
[file cStringUsingEncoding:
NSASCIIStringEncoding],
true, "raw",