9ae3a8
From c37b7417ab2bdc1c6880e192c5d80f865f7ed089 Mon Sep 17 00:00:00 2001
9ae3a8
From: Max Reitz <mreitz@redhat.com>
9ae3a8
Date: Mon, 4 Nov 2013 22:32:22 +0100
9ae3a8
Subject: [PATCH 29/87] qmp: Documentation for BLOCK_IMAGE_CORRUPTED
9ae3a8
9ae3a8
RH-Author: Max Reitz <mreitz@redhat.com>
9ae3a8
Message-id: <1383604354-12743-32-git-send-email-mreitz@redhat.com>
9ae3a8
Patchwork-id: 55331
9ae3a8
O-Subject: [RHEL-7.0 qemu-kvm PATCH 31/43] qmp: Documentation for BLOCK_IMAGE_CORRUPTED
9ae3a8
Bugzilla: 1004347
9ae3a8
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
9ae3a8
BZ: 1004347
9ae3a8
9ae3a8
Add an appropriate entry describing this event and its parameters into
9ae3a8
qmp-events.txt.
9ae3a8
9ae3a8
Signed-off-by: Max Reitz <mreitz@redhat.com>
9ae3a8
Reviewed-by: Eric Blake <eblake@redhat.com>
9ae3a8
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
9ae3a8
(cherry picked from commit 0ca0b0d5f8a87dbc6daa5095771d036d0e6dc5b4)
9ae3a8
9ae3a8
Signed-off-by: Max Reitz <mreitz@redhat.com>
9ae3a8
---
9ae3a8
 QMP/qmp-events.txt | 22 ++++++++++++++++++++++
9ae3a8
 1 file changed, 22 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 QMP/qmp-events.txt |   22 ++++++++++++++++++++++
9ae3a8
 1 files changed, 22 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt
9ae3a8
index 92fe5fb..e185030 100644
9ae3a8
--- a/QMP/qmp-events.txt
9ae3a8
+++ b/QMP/qmp-events.txt
9ae3a8
@@ -18,6 +18,28 @@ Example:
9ae3a8
     "data": { "actual": 944766976 },
9ae3a8
     "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
9ae3a8
 
9ae3a8
+BLOCK_IMAGE_CORRUPTED
9ae3a8
+---------------------
9ae3a8
+
9ae3a8
+Emitted when a disk image is being marked corrupt.
9ae3a8
+
9ae3a8
+Data:
9ae3a8
+
9ae3a8
+- "device": Device name (json-string)
9ae3a8
+- "msg":    Informative message (e.g., reason for the corruption) (json-string)
9ae3a8
+- "offset": If the corruption resulted from an image access, this is the access
9ae3a8
+            offset into the image (json-int)
9ae3a8
+- "size":   If the corruption resulted from an image access, this is the access
9ae3a8
+            size (json-int)
9ae3a8
+
9ae3a8
+Example:
9ae3a8
+
9ae3a8
+{ "event": "BLOCK_IMAGE_CORRUPTED",
9ae3a8
+    "data": { "device": "ide0-hd0",
9ae3a8
+        "msg": "Prevented active L1 table overwrite", "offset": 196608,
9ae3a8
+        "size": 65536 },
9ae3a8
+    "timestamp": { "seconds": 1378126126, "microseconds": 966463 } }
9ae3a8
+
9ae3a8
 BLOCK_IO_ERROR
9ae3a8
 --------------
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8