qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED
@ 2013-09-03 13:49 Max Reitz
  2013-09-03 13:56 ` Kevin Wolf
  2013-09-04 14:44 ` Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Max Reitz @ 2013-09-03 13:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Max Reitz

Add an appropriate entry describing this event and its parameters into
qmp-events.txt.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
---
v2:
 - moved section to keep qmp-events.txt sorted
---
 QMP/qmp-events.txt | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
index 39b6016..4b24ec9 100644
--- a/QMP/qmp-events.txt
+++ b/QMP/qmp-events.txt
@@ -18,6 +18,28 @@ Example:
     "data": { "actual": 944766976 },
     "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
 
+BLOCK_IMAGE_CORRUPTED
+---------------------
+
+Emitted when a disk image is being marked corrupt.
+
+Data:
+
+- "device": Device name (json-string)
+- "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)
+- "size":   If the corruption resulted from an image access, this is the access
+            size (json-int)
+
+Example:
+
+{ "event": "BLOCK_IMAGE_CORRUPTED",
+    "data": { "device": "ide0-hd0",
+        "msg": "Prevented active L1 table overwrite", "offset": 196608,
+        "size": 65536 },
+    "timestamp": { "seconds": 1378126126, "microseconds": 966463 } }
+
 BLOCK_IO_ERROR
 --------------
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED
  2013-09-03 13:49 [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED Max Reitz
@ 2013-09-03 13:56 ` Kevin Wolf
  2013-09-04 14:44 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2013-09-03 13:56 UTC (permalink / raw)
  To: Max Reitz; +Cc: qemu-devel, stefanha

Am 03.09.2013 um 15:49 hat Max Reitz geschrieben:
> Add an appropriate entry describing this event and its parameters into
> qmp-events.txt.
> 
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> ---
> v2:
>  - moved section to keep qmp-events.txt sorted

Reviewed-by: Kevin Wolf <kwolf@redhat.com>

Don't forget to keep both Stefan and me CCed for block layer patches.
This week Stefan handles the queue.

Kevin

>  QMP/qmp-events.txt | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
> index 39b6016..4b24ec9 100644
> --- a/QMP/qmp-events.txt
> +++ b/QMP/qmp-events.txt
> @@ -18,6 +18,28 @@ Example:
>      "data": { "actual": 944766976 },
>      "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
>  
> +BLOCK_IMAGE_CORRUPTED
> +---------------------
> +
> +Emitted when a disk image is being marked corrupt.
> +
> +Data:
> +
> +- "device": Device name (json-string)
> +- "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)
> +- "size":   If the corruption resulted from an image access, this is the access
> +            size (json-int)
> +
> +Example:
> +
> +{ "event": "BLOCK_IMAGE_CORRUPTED",
> +    "data": { "device": "ide0-hd0",
> +        "msg": "Prevented active L1 table overwrite", "offset": 196608,
> +        "size": 65536 },
> +    "timestamp": { "seconds": 1378126126, "microseconds": 966463 } }
> +
>  BLOCK_IO_ERROR
>  --------------
>  
> -- 
> 1.8.3.1
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED
  2013-09-03 13:49 [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED Max Reitz
  2013-09-03 13:56 ` Kevin Wolf
@ 2013-09-04 14:44 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2013-09-04 14:44 UTC (permalink / raw)
  To: Max Reitz; +Cc: Kevin Wolf, qemu-devel

On Tue, Sep 03, 2013 at 03:49:39PM +0200, Max Reitz wrote:
> Add an appropriate entry describing this event and its parameters into
> qmp-events.txt.
> 
> Signed-off-by: Max Reitz <mreitz@redhat.com>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> ---
> v2:
>  - moved section to keep qmp-events.txt sorted
> ---
>  QMP/qmp-events.txt | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-04 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 13:49 [Qemu-devel] [PATCH v2] qmp: Documentation for BLOCK_IMAGE_CORRUPTED Max Reitz
2013-09-03 13:56 ` Kevin Wolf
2013-09-04 14:44 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).