aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-06-08 13:56:08 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2015-07-02 10:06:23 +0100
commit0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b (patch)
tree0e38faa50c9b3d149853693e64d945b15d351405 /hmp.c
parentba3f0e2545c365ebe1dbddb0e53058710d41881e (diff)
downloadqemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.zip
qemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.tar.gz
qemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.tar.bz2
qmp: Add optional bool "unmap" to drive-mirror
If specified as "true", it allows discarding on target sectors where source is not allocated. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hmp.c b/hmp.c
index 070aaf8..dcc66f1 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1061,7 +1061,7 @@ void hmp_drive_mirror(Monitor *mon, const QDict *qdict)
false, NULL, false, NULL,
full ? MIRROR_SYNC_MODE_FULL : MIRROR_SYNC_MODE_TOP,
true, mode, false, 0, false, 0, false, 0,
- false, 0, false, 0, &err);
+ false, 0, false, 0, false, true, &err);
hmp_handle_error(mon, &err);
}