diff options
| author | Fam Zheng | 2015-06-08 07:56:08 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-07-02 11:06:23 +0200 |
| commit | 0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b (patch) | |
| tree | 0e38faa50c9b3d149853693e64d945b15d351405 /qapi | |
| parent | block: Add bdrv_get_block_status_above (diff) | |
| download | qemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.tar.gz qemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.tar.xz qemu-0fc9f8ea2800b76eaea20a8a3a91fbeeb4bfa81b.zip | |
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 'qapi')
| -rw-r--r-- | qapi/block-core.json | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index ed3f8902e5..7b2efb8678 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -975,6 +975,11 @@ # @on-target-error: #optional the action to take on an error on the target, # default 'report' (no limitations, since this applies to # a different block device than @device). +# @unmap: #optional Whether to try to unmap target sectors where source has +# only zero. If true, and target unallocated sectors will read as zero, +# target image sectors will be unmapped; otherwise, zeroes will be +# written. Both will result in identical contents. +# Default is true. (Since 2.4) # # Returns: nothing on success # If @device is not a valid block device, DeviceNotFound @@ -987,7 +992,8 @@ 'sync': 'MirrorSyncMode', '*mode': 'NewImageMode', '*speed': 'int', '*granularity': 'uint32', '*buf-size': 'int', '*on-source-error': 'BlockdevOnError', - '*on-target-error': 'BlockdevOnError' } } + '*on-target-error': 'BlockdevOnError', + '*unmap': 'bool' } } ## # @BlockDirtyBitmap |
