aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-11-06 16:27:06 +0100
committerKevin Wolf <kwolf@redhat.com>2015-11-11 16:22:47 +0100
commit24fb4133001e1f54a526f0927837f30c1507169a (patch)
treeef1ae268d491e4a2ac4c040e403e5d926b51cb67 /ui
parentf1f57066573e832438cd87600310589fa9cee202 (diff)
downloadqemu-24fb4133001e1f54a526f0927837f30c1507169a.zip
qemu-24fb4133001e1f54a526f0927837f30c1507169a.tar.gz
qemu-24fb4133001e1f54a526f0927837f30c1507169a.tar.bz2
qmp: Introduce blockdev-change-medium
Introduce a new QMP command 'blockdev-change-medium' which is intended to replace the 'change' command for block devices. The existing function qmp_change_blockdev() is accordingly renamed to qmp_blockdev_change_medium(). Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/cocoa.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index c0d6bb2..2d8e4e2 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1113,10 +1113,12 @@ QemuCocoaView *cocoaView;
}
Error *err = NULL;
- qmp_change_blockdev([drive cStringUsingEncoding: NSASCIIStringEncoding],
- [file cStringUsingEncoding: NSASCIIStringEncoding],
- "raw",
- &err);
+ qmp_blockdev_change_medium([drive cStringUsingEncoding:
+ NSASCIIStringEncoding],
+ [file cStringUsingEncoding:
+ NSASCIIStringEncoding],
+ true, "raw",
+ &err);
handleAnyDeviceErrors(err);
}
}