|
@@ -764,7 +764,7 @@
|
|
#
|
|
#
|
|
# Since: 0.14
|
|
# Since: 0.14
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "query-block" }
|
|
# -> { "execute": "query-block" }
|
|
# <- {
|
|
# <- {
|
|
@@ -1168,7 +1168,7 @@
|
|
#
|
|
#
|
|
# Since: 0.14
|
|
# Since: 0.14
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "query-blockstats" }
|
|
# -> { "execute": "query-blockstats" }
|
|
# <- {
|
|
# <- {
|
|
@@ -1461,7 +1461,7 @@
|
|
#
|
|
#
|
|
# Since: 0.14
|
|
# Since: 0.14
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block_resize",
|
|
# -> { "execute": "block_resize",
|
|
# "arguments": { "device": "scratch", "size": 1073741824 } }
|
|
# "arguments": { "device": "scratch", "size": 1073741824 } }
|
|
@@ -1680,7 +1680,7 @@
|
|
#
|
|
#
|
|
# Since: 0.14
|
|
# Since: 0.14
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-snapshot-sync",
|
|
# -> { "execute": "blockdev-snapshot-sync",
|
|
# "arguments": { "device": "ide-hd0",
|
|
# "arguments": { "device": "ide-hd0",
|
|
@@ -1711,7 +1711,7 @@
|
|
#
|
|
#
|
|
# Since: 2.5
|
|
# Since: 2.5
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-add",
|
|
# -> { "execute": "blockdev-add",
|
|
# "arguments": { "driver": "qcow2",
|
|
# "arguments": { "driver": "qcow2",
|
|
@@ -1857,7 +1857,7 @@
|
|
#
|
|
#
|
|
# Since: 1.3
|
|
# Since: 1.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-commit",
|
|
# -> { "execute": "block-commit",
|
|
# "arguments": { "device": "virtio0",
|
|
# "arguments": { "device": "virtio0",
|
|
@@ -1895,7 +1895,7 @@
|
|
#
|
|
#
|
|
# Since: 1.6
|
|
# Since: 1.6
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "drive-backup",
|
|
# -> { "execute": "drive-backup",
|
|
# "arguments": { "device": "drive0",
|
|
# "arguments": { "device": "drive0",
|
|
@@ -1921,7 +1921,7 @@
|
|
#
|
|
#
|
|
# Since: 2.3
|
|
# Since: 2.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-backup",
|
|
# -> { "execute": "blockdev-backup",
|
|
# "arguments": { "device": "src-id",
|
|
# "arguments": { "device": "src-id",
|
|
@@ -1945,7 +1945,7 @@
|
|
#
|
|
#
|
|
# Since: 2.0
|
|
# Since: 2.0
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "query-named-block-nodes" }
|
|
# -> { "execute": "query-named-block-nodes" }
|
|
# <- { "return": [ { "ro":false,
|
|
# <- { "return": [ { "ro":false,
|
|
@@ -2126,7 +2126,7 @@
|
|
#
|
|
#
|
|
# Since: 1.3
|
|
# Since: 1.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "drive-mirror",
|
|
# -> { "execute": "drive-mirror",
|
|
# "arguments": { "device": "ide-hd0",
|
|
# "arguments": { "device": "ide-hd0",
|
|
@@ -2303,7 +2303,7 @@
|
|
#
|
|
#
|
|
# Since: 2.4
|
|
# Since: 2.4
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-add",
|
|
# -> { "execute": "block-dirty-bitmap-add",
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
@@ -2327,7 +2327,7 @@
|
|
#
|
|
#
|
|
# Since: 2.4
|
|
# Since: 2.4
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-remove",
|
|
# -> { "execute": "block-dirty-bitmap-remove",
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
@@ -2350,7 +2350,7 @@
|
|
#
|
|
#
|
|
# Since: 2.4
|
|
# Since: 2.4
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-clear",
|
|
# -> { "execute": "block-dirty-bitmap-clear",
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
@@ -2371,7 +2371,7 @@
|
|
#
|
|
#
|
|
# Since: 4.0
|
|
# Since: 4.0
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-enable",
|
|
# -> { "execute": "block-dirty-bitmap-enable",
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
@@ -2392,7 +2392,7 @@
|
|
#
|
|
#
|
|
# Since: 4.0
|
|
# Since: 4.0
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-disable",
|
|
# -> { "execute": "block-dirty-bitmap-disable",
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
# "arguments": { "node": "drive0", "name": "bitmap0" } }
|
|
@@ -2424,7 +2424,7 @@
|
|
#
|
|
#
|
|
# Since: 4.0
|
|
# Since: 4.0
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-dirty-bitmap-merge",
|
|
# -> { "execute": "block-dirty-bitmap-merge",
|
|
# "arguments": { "node": "drive0", "target": "bitmap0",
|
|
# "arguments": { "node": "drive0", "target": "bitmap0",
|
|
@@ -2533,7 +2533,7 @@
|
|
#
|
|
#
|
|
# Since: 2.6
|
|
# Since: 2.6
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-mirror",
|
|
# -> { "execute": "blockdev-mirror",
|
|
# "arguments": { "device": "ide-hd0",
|
|
# "arguments": { "device": "ide-hd0",
|
|
@@ -2858,7 +2858,7 @@
|
|
#
|
|
#
|
|
# Since: 1.1
|
|
# Since: 1.1
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-stream",
|
|
# -> { "execute": "block-stream",
|
|
# "arguments": { "device": "virtio0",
|
|
# "arguments": { "device": "virtio0",
|
|
@@ -4797,7 +4797,7 @@
|
|
#
|
|
#
|
|
# Since: 2.9
|
|
# Since: 2.9
|
|
#
|
|
#
|
|
-# Examples:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-add",
|
|
# -> { "execute": "blockdev-add",
|
|
# "arguments": {
|
|
# "arguments": {
|
|
@@ -4811,6 +4811,8 @@
|
|
# }
|
|
# }
|
|
# <- { "return": {} }
|
|
# <- { "return": {} }
|
|
#
|
|
#
|
|
|
|
+# .. qmp-example::
|
|
|
|
+#
|
|
# -> { "execute": "blockdev-add",
|
|
# -> { "execute": "blockdev-add",
|
|
# "arguments": {
|
|
# "arguments": {
|
|
# "driver": "qcow2",
|
|
# "driver": "qcow2",
|
|
@@ -4895,7 +4897,7 @@
|
|
#
|
|
#
|
|
# Since: 2.9
|
|
# Since: 2.9
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-add",
|
|
# -> { "execute": "blockdev-add",
|
|
# "arguments": {
|
|
# "arguments": {
|
|
@@ -5544,7 +5546,7 @@
|
|
# .. note:: If action is "stop", a STOP event will eventually follow the
|
|
# .. note:: If action is "stop", a STOP event will eventually follow the
|
|
# BLOCK_IO_ERROR event.
|
|
# BLOCK_IO_ERROR event.
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_IMAGE_CORRUPTED",
|
|
# <- { "event": "BLOCK_IMAGE_CORRUPTED",
|
|
# "data": { "device": "", "node-name": "drive", "fatal": false,
|
|
# "data": { "device": "", "node-name": "drive", "fatal": false,
|
|
@@ -5593,7 +5595,7 @@
|
|
#
|
|
#
|
|
# Since: 0.13
|
|
# Since: 0.13
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_IO_ERROR",
|
|
# <- { "event": "BLOCK_IO_ERROR",
|
|
# "data": { "device": "ide0-hd1",
|
|
# "data": { "device": "ide0-hd1",
|
|
@@ -5633,7 +5635,7 @@
|
|
#
|
|
#
|
|
# Since: 1.1
|
|
# Since: 1.1
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_JOB_COMPLETED",
|
|
# <- { "event": "BLOCK_JOB_COMPLETED",
|
|
# "data": { "type": "stream", "device": "virtio-disk0",
|
|
# "data": { "type": "stream", "device": "virtio-disk0",
|
|
@@ -5668,7 +5670,7 @@
|
|
#
|
|
#
|
|
# Since: 1.1
|
|
# Since: 1.1
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_JOB_CANCELLED",
|
|
# <- { "event": "BLOCK_JOB_CANCELLED",
|
|
# "data": { "type": "stream", "device": "virtio-disk0",
|
|
# "data": { "type": "stream", "device": "virtio-disk0",
|
|
@@ -5697,7 +5699,7 @@
|
|
#
|
|
#
|
|
# Since: 1.3
|
|
# Since: 1.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_JOB_ERROR",
|
|
# <- { "event": "BLOCK_JOB_ERROR",
|
|
# "data": { "device": "ide0-hd1",
|
|
# "data": { "device": "ide0-hd1",
|
|
@@ -5732,7 +5734,7 @@
|
|
#
|
|
#
|
|
# Since: 1.3
|
|
# Since: 1.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_JOB_READY",
|
|
# <- { "event": "BLOCK_JOB_READY",
|
|
# "data": { "device": "drive0", "type": "mirror", "speed": 0,
|
|
# "data": { "device": "drive0", "type": "mirror", "speed": 0,
|
|
@@ -5760,7 +5762,7 @@
|
|
#
|
|
#
|
|
# Since: 2.12
|
|
# Since: 2.12
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "BLOCK_JOB_PENDING",
|
|
# <- { "event": "BLOCK_JOB_PENDING",
|
|
# "data": { "type": "mirror", "id": "backup_1" },
|
|
# "data": { "type": "mirror", "id": "backup_1" },
|
|
@@ -5834,7 +5836,7 @@
|
|
#
|
|
#
|
|
# Since: 2.3
|
|
# Since: 2.3
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "block-set-write-threshold",
|
|
# -> { "execute": "block-set-write-threshold",
|
|
# "arguments": { "node-name": "mydev",
|
|
# "arguments": { "node-name": "mydev",
|
|
@@ -5879,9 +5881,8 @@
|
|
#
|
|
#
|
|
# Since: 2.7
|
|
# Since: 2.7
|
|
#
|
|
#
|
|
-# Examples:
|
|
|
|
-#
|
|
|
|
-# 1. Add a new node to a quorum
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Add a new node to a quorum
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-add",
|
|
# -> { "execute": "blockdev-add",
|
|
# "arguments": {
|
|
# "arguments": {
|
|
@@ -5895,7 +5896,8 @@
|
|
# "node": "new_node" } }
|
|
# "node": "new_node" } }
|
|
# <- { "return": {} }
|
|
# <- { "return": {} }
|
|
#
|
|
#
|
|
-# 2. Delete a quorum's node
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Delete a quorum's node
|
|
#
|
|
#
|
|
# -> { "execute": "x-blockdev-change",
|
|
# -> { "execute": "x-blockdev-change",
|
|
# "arguments": { "parent": "disk1",
|
|
# "arguments": { "parent": "disk1",
|
|
@@ -5931,16 +5933,16 @@
|
|
#
|
|
#
|
|
# Since: 2.12
|
|
# Since: 2.12
|
|
#
|
|
#
|
|
-# Examples:
|
|
|
|
-#
|
|
|
|
-# 1. Move a node into an IOThread
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Move a node into an IOThread
|
|
#
|
|
#
|
|
# -> { "execute": "x-blockdev-set-iothread",
|
|
# -> { "execute": "x-blockdev-set-iothread",
|
|
# "arguments": { "node-name": "disk1",
|
|
# "arguments": { "node-name": "disk1",
|
|
# "iothread": "iothread0" } }
|
|
# "iothread": "iothread0" } }
|
|
# <- { "return": {} }
|
|
# <- { "return": {} }
|
|
#
|
|
#
|
|
-# 2. Move a node into the main loop
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Move a node into the main loop
|
|
#
|
|
#
|
|
# -> { "execute": "x-blockdev-set-iothread",
|
|
# -> { "execute": "x-blockdev-set-iothread",
|
|
# "arguments": { "node-name": "disk1",
|
|
# "arguments": { "node-name": "disk1",
|
|
@@ -5985,7 +5987,7 @@
|
|
#
|
|
#
|
|
# Since: 2.0
|
|
# Since: 2.0
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# <- { "event": "QUORUM_FAILURE",
|
|
# <- { "event": "QUORUM_FAILURE",
|
|
# "data": { "reference": "usr1", "sector-num": 345435, "sectors-count": 5 },
|
|
# "data": { "reference": "usr1", "sector-num": 345435, "sectors-count": 5 },
|
|
@@ -6016,16 +6018,16 @@
|
|
#
|
|
#
|
|
# Since: 2.0
|
|
# Since: 2.0
|
|
#
|
|
#
|
|
-# Examples:
|
|
|
|
-#
|
|
|
|
-# 1. Read operation
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Read operation
|
|
#
|
|
#
|
|
# <- { "event": "QUORUM_REPORT_BAD",
|
|
# <- { "event": "QUORUM_REPORT_BAD",
|
|
# "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5,
|
|
# "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5,
|
|
# "type": "read" },
|
|
# "type": "read" },
|
|
# "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
|
|
# "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
|
|
#
|
|
#
|
|
-# 2. Flush operation
|
|
|
|
|
|
+# .. qmp-example::
|
|
|
|
+# :title: Flush operation
|
|
#
|
|
#
|
|
# <- { "event": "QUORUM_REPORT_BAD",
|
|
# <- { "event": "QUORUM_REPORT_BAD",
|
|
# "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120,
|
|
# "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120,
|
|
@@ -6070,7 +6072,7 @@
|
|
#
|
|
#
|
|
# Since: 1.7
|
|
# Since: 1.7
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-snapshot-internal-sync",
|
|
# -> { "execute": "blockdev-snapshot-internal-sync",
|
|
# "arguments": { "device": "ide-hd0",
|
|
# "arguments": { "device": "ide-hd0",
|
|
@@ -6109,7 +6111,7 @@
|
|
#
|
|
#
|
|
# Since: 1.7
|
|
# Since: 1.7
|
|
#
|
|
#
|
|
-# Example:
|
|
|
|
|
|
+# .. qmp-example::
|
|
#
|
|
#
|
|
# -> { "execute": "blockdev-snapshot-delete-internal-sync",
|
|
# -> { "execute": "blockdev-snapshot-delete-internal-sync",
|
|
# "arguments": { "device": "ide-hd0",
|
|
# "arguments": { "device": "ide-hd0",
|