mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
f1f5706657
commit
24fb413300
7 changed files with 69 additions and 12 deletions
10
ui/cocoa.m
10
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue