path: root/qmp-commands.hx
diff options
authorBenoƮt Canet <benoit.canet@irqsave.net>2014-06-27 18:25:25 +0200
committerKevin Wolf <kwolf@redhat.com>2014-06-27 20:00:00 +0200
commit09158f00e0fdb506dcbf36f67c615b7f6c604c5a (patch)
treef7a4f03efed4ae74d92c1dc3d1b9d4bef51a6780 /qmp-commands.hx
parent823c686356e6758bacb46d3a316b841536d6d707 (diff)
block: Add replaces argument to drive-mirror
drive-mirror will bdrv_swap the new BDS named node-name with the one pointed by replaces when the mirroring is finished. Signed-off-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
1 files changed, 3 insertions, 1 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx
index 5254938878..d342b8a067 100644
--- a/qmp-commands.hx
+++ b/qmp-commands.hx
@@ -1293,7 +1293,7 @@ EQMP
.name = "drive-mirror",
.args_type = "sync:s,device:B,target:s,speed:i?,mode:s?,format:s?,"
- "node-name:s?,"
+ "node-name:s?,replaces:s?,"
.mhandler.cmd_new = qmp_marshal_input_drive_mirror,
@@ -1317,6 +1317,8 @@ Arguments:
- "format": format of new image (json-string, optional)
- "node-name": the name of the new block driver state in the node graph
(json-string, optional)
+- "replaces": the block driver node name to replace when finished
+ (json-string, optional)
- "mode": how an image file should be created into the target
file/device (NewImageMode, optional, default 'absolute-paths')
- "speed": maximum speed of the streaming job, in bytes per second