From c37b7417ab2bdc1c6880e192c5d80f865f7ed089 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Mon, 4 Nov 2013 22:32:22 +0100 Subject: [PATCH 29/87] qmp: Documentation for BLOCK_IMAGE_CORRUPTED RH-Author: Max Reitz Message-id: <1383604354-12743-32-git-send-email-mreitz@redhat.com> Patchwork-id: 55331 O-Subject: [RHEL-7.0 qemu-kvm PATCH 31/43] qmp: Documentation for BLOCK_IMAGE_CORRUPTED Bugzilla: 1004347 RH-Acked-by: Kevin Wolf RH-Acked-by: Laszlo Ersek RH-Acked-by: Fam Zheng RH-Acked-by: Stefan Hajnoczi BZ: 1004347 Add an appropriate entry describing this event and its parameters into qmp-events.txt. Signed-off-by: Max Reitz Reviewed-by: Eric Blake Reviewed-by: Kevin Wolf Signed-off-by: Stefan Hajnoczi (cherry picked from commit 0ca0b0d5f8a87dbc6daa5095771d036d0e6dc5b4) Signed-off-by: Max Reitz --- QMP/qmp-events.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) Signed-off-by: Miroslav Rezanina --- QMP/qmp-events.txt | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 92fe5fb..e185030 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.7.1