mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
block: Accept node-name for drive-mirror
In order to remove the necessity to use BlockBackend names in the external API, we want to allow node-names everywhere. This converts drive-mirror to accept a node-name without lifting the restriction that we're operating at a root node. In case of an invalid device name, the command returns the GenericError error class now instead of DeviceNotFound, because this is what qmp_get_root_bs() returns. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
@@ -1689,7 +1689,8 @@ Arguments:
|
||||
|
||||
- "job-id": Identifier for the newly-created block job. If omitted,
|
||||
the device name will be used. (json-string, optional)
|
||||
- "device": device name to operate on (json-string)
|
||||
- "device": the device name or node-name of a root node whose writes should be
|
||||
mirrored. (json-string)
|
||||
- "target": name of new image file (json-string)
|
||||
- "format": format of new image (json-string, optional)
|
||||
- "node-name": the name of the new block driver state in the node graph
|
||||
|
||||
Reference in New Issue
Block a user