From 39ff43d9e1f42b1d829a955e546cddab87ac0626 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Wed, 11 Nov 2015 04:49:44 +0100 Subject: blockdev: read-only-mode for blockdev-change-medium Add an option to qmp_blockdev_change_medium() which allows changing the read-only status of the block device whose medium is changed. Some drives do not have a inherently fixed read-only status; for instance, floppy disks can be set read-only or writable independently of the drive. Some users may find it useful to be able to therefore change the read-only status of a block device when changing the medium. Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- ui/cocoa.m | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') diff --git a/ui/cocoa.m b/ui/cocoa.m index 2d8e4e2..1554331 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1118,6 +1118,7 @@ QemuCocoaView *cocoaView; [file cStringUsingEncoding: NSASCIIStringEncoding], true, "raw", + false, 0, &err); handleAnyDeviceErrors(err); } -- cgit v1.1