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