diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2016-06-23 14:20:24 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2016-09-05 19:06:47 +0200 |
| commit | 0524e93a3fd7bff5bb4a584c372f2632ab7c0e0f (patch) | |
| tree | 819da417768425c21b050edfdf41db97e4bb00e0 /qmp-commands.hx | |
| parent | b7e4fa224200ec87b9599a1d72b16ada35a3d113 (diff) | |
| download | focaccia-qemu-0524e93a3fd7bff5bb4a584c372f2632ab7c0e0f.tar.gz focaccia-qemu-0524e93a3fd7bff5bb4a584c372f2632ab7c0e0f.zip | |
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>
Diffstat (limited to 'qmp-commands.hx')
| -rw-r--r-- | qmp-commands.hx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index c5e6cd57aa..956f1b0f47 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -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 |