]> Git Repo - qemu.git/commitdiff
qmp-events: move 'BLOCK_JOB_COMPLETED' doc to schema
authorMarc-André Lureau <[email protected]>
Thu, 23 Jun 2016 13:52:56 +0000 (15:52 +0200)
committerMarkus Armbruster <[email protected]>
Mon, 16 Jan 2017 08:19:48 +0000 (09:19 +0100)
Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
docs/qmp-events.txt
qapi/block-core.json

index dc5bce111b39ca8ef551ad88c0a99bde489e3153..9b42f407d4193dc9e600ff9bc8407eeafc6b86fd 100644 (file)
@@ -55,36 +55,6 @@ Example:
                "speed": 0 },
      "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
 
-BLOCK_JOB_COMPLETED
--------------------
-
-Emitted when a block job has completed.
-
-Data:
-
-- "type":     Job type (json-string; "stream" for image streaming
-                                     "commit" for block commit)
-- "device":   Job identifier. Originally the device name but other
-              values are allowed since QEMU 2.7 (json-string)
-- "len":      Maximum progress value (json-int)
-- "offset":   Current progress value (json-int)
-              On success this is equal to len.
-              On failure this is less than len.
-- "speed":    Rate limit, bytes per second (json-int)
-- "error":    Error message (json-string, optional)
-              Only present on failure.  This field contains a human-readable
-              error message.  There are no semantics other than that streaming
-              has failed and clients should not try to interpret the error
-              string.
-
-Example:
-
-{ "event": "BLOCK_JOB_COMPLETED",
-     "data": { "type": "stream", "device": "virtio-disk0",
-               "len": 10737418240, "offset": 10737418240,
-               "speed": 0 },
-     "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
-
 BLOCK_JOB_ERROR
 ---------------
 
index 89af577625e8edeb6779ae8622e28fdfada63412..abfa182846a80e90c3bfec075158bf6884dff841 100644 (file)
 #         interpret the error string
 #
 # Since: 1.1
+#
+# Example:
+#
+# <- { "event": "BLOCK_JOB_COMPLETED",
+#      "data": { "type": "stream", "device": "virtio-disk0",
+#                "len": 10737418240, "offset": 10737418240,
+#                "speed": 0 },
+#      "timestamp": { "seconds": 1267061043, "microseconds": 959568 } }
+#
 ##
 { 'event': 'BLOCK_JOB_COMPLETED',
   'data': { 'type'  : 'BlockJobType',
This page took 0.030301 seconds and 4 git commands to generate.