docs: update BLOCK_IMAGE_CORRUPTED documentation
authorAlberto Garcia <berto@igalia.com>
Thu, 7 May 2015 14:58:26 +0000 (17:58 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 May 2015 11:11:10 +0000 (14:11 +0300)
Label the "size" and "offset" fields in BLOCK_IMAGE_CORRUPTED as
optional, and clarify that the latter refers to the host's offset into
the image.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
docs/qmp/qmp-events.txt
qapi/block-core.json

index b19e490eb5588439ee56751cff6383ca00bea988..64ba46c769d229b846a8230de33fed5f9cc45e42 100644 (file)
@@ -43,9 +43,10 @@ Data:
 - "msg":       Informative message (e.g., reason for the corruption)
                (json-string)
 - "offset":    If the corruption resulted from an image access, this
-               is the access offset into the image (json-int)
+               is the host's access offset into the image
+               (json-int, optional)
 - "size":      If the corruption resulted from an image access, this
-               is the access size (json-int)
+               is the access size (json-int, optional)
 
 Example:
 
index dcf7c04ffa2ae0e3a51d0fe559ee17012152bb29..863ffea0c74258b458c91c0de5969e3c0542351c 100644 (file)
 #       not guaranteed to be stable
 #
 # @offset: #optional, if the corruption resulted from an image access, this is
-#          the access offset into the image
+#          the host's access offset into the image
 #
 # @size: #optional, if the corruption resulted from an image access, this is
 #        the access size