qmp-commands: move 'block-set-write-threshold' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
be3e83cb8a
commit
e817862b17
|
@ -438,25 +438,6 @@ Example:
|
||||||
-> { "execute": "trace-event-set-state", "arguments": { "name": "qemu_memalign", "enable": "true" } }
|
-> { "execute": "trace-event-set-state", "arguments": { "name": "qemu_memalign", "enable": "true" } }
|
||||||
<- { "return": {} }
|
<- { "return": {} }
|
||||||
|
|
||||||
block-set-write-threshold
|
|
||||||
------------
|
|
||||||
|
|
||||||
Change the write threshold for a block drive. The threshold is an offset,
|
|
||||||
thus must be non-negative. Default is no write threshold.
|
|
||||||
Setting the threshold to zero disables it.
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
- "node-name": the node name in the block driver state graph (json-string)
|
|
||||||
- "write-threshold": the write threshold in bytes (json-int)
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
-> { "execute": "block-set-write-threshold",
|
|
||||||
"arguments": { "node-name": "mydev",
|
|
||||||
"write-threshold": 17179869184 } }
|
|
||||||
<- { "return": {} }
|
|
||||||
|
|
||||||
Show rocker switch
|
Show rocker switch
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
@ -3402,8 +3402,12 @@
|
||||||
##
|
##
|
||||||
# @block-set-write-threshold:
|
# @block-set-write-threshold:
|
||||||
#
|
#
|
||||||
# Change the write threshold for a block drive. An event will be delivered
|
# Change the write threshold for a block drive. An event will be
|
||||||
# if a write to this block drive crosses the configured threshold.
|
# delivered if a write to this block drive crosses the configured
|
||||||
|
# threshold. The threshold is an offset, thus must be
|
||||||
|
# non-negative. Default is no write threshold. Setting the threshold
|
||||||
|
# to zero disables it.
|
||||||
|
#
|
||||||
# This is useful to transparently resize thin-provisioned drives without
|
# This is useful to transparently resize thin-provisioned drives without
|
||||||
# the guest OS noticing.
|
# the guest OS noticing.
|
||||||
#
|
#
|
||||||
|
@ -3413,6 +3417,14 @@
|
||||||
# Use 0 to disable the threshold.
|
# Use 0 to disable the threshold.
|
||||||
#
|
#
|
||||||
# Since: 2.3
|
# Since: 2.3
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "block-set-write-threshold",
|
||||||
|
# "arguments": { "node-name": "mydev",
|
||||||
|
# "write-threshold": 17179869184 } }
|
||||||
|
# <- { "return": {} }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'block-set-write-threshold',
|
{ 'command': 'block-set-write-threshold',
|
||||||
'data': { 'node-name': 'str', 'write-threshold': 'uint64' } }
|
'data': { 'node-name': 'str', 'write-threshold': 'uint64' } }
|
||||||
|
|
Loading…
Reference in New Issue