summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 15:04:41 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:19:46 +0100
commite817862b1790a7f56adb44bc80d861df6bad18ce (patch)
treed5a2000dbe1b9b830104f748309dc70735985578
parentbe3e83cb8a81cf1cc863708b4caead7b9252f6fb (diff)
downloadfocaccia-qemu-e817862b1790a7f56adb44bc80d861df6bad18ce.tar.gz
focaccia-qemu-e817862b1790a7f56adb44bc80d861df6bad18ce.zip
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>
-rw-r--r--docs/qmp-commands.txt19
-rw-r--r--qapi/block-core.json16
2 files changed, 14 insertions, 21 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 70de4a6067..af903bff26 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -438,25 +438,6 @@ Example:
 -> { "execute": "trace-event-set-state", "arguments": { "name": "qemu_memalign", "enable": "true" } }
 <- { "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
 ------------------
 
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 0f8aacdfd0..40b5e1ba8b 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -3402,8 +3402,12 @@
 ##
 # @block-set-write-threshold:
 #
-# Change the write threshold for a block drive. An event will be delivered
-# if a write to this block drive crosses the configured threshold.
+# Change the write threshold for a block drive. An event will be
+# 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
 # the guest OS noticing.
 #
@@ -3413,6 +3417,14 @@
 #                   Use 0 to disable the threshold.
 #
 # Since: 2.3
+#
+# Example:
+#
+# -> { "execute": "block-set-write-threshold",
+#      "arguments": { "node-name": "mydev",
+#                     "write-threshold": 17179869184 } }
+# <- { "return": {} }
+#
 ##
 { 'command': 'block-set-write-threshold',
   'data': { 'node-name': 'str', 'write-threshold': 'uint64' } }