From c120f0fa14cd763d57270933713dbb25de5446fd Mon Sep 17 00:00:00 2001 From: Wenchao Xia Date: Wed, 18 Jun 2014 08:43:46 +0200 Subject: qapi event: convert BLOCK_IMAGE_CORRUPTED Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- qapi/block-core.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'qapi') diff --git a/qapi/block-core.json b/qapi/block-core.json index 682864df3f..2dbac42558 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1428,6 +1428,30 @@ 'data': [ 'ignore', 'report', 'stop' ] } +## +# @BLOCK_IMAGE_CORRUPTED +# +# Emitted when a disk image is being marked corrupt +# +# @device: device name +# +# @msg: informative message for human consumption, such as the kind of +# corruption being detected +# +# @offset: #optional, if the corruption resulted from an image access, this is +# the access offset into the image +# +# @size: #optional, if the corruption resulted from an image access, this is +# the access size +# +# Since: 1.7 +## +{ 'event': 'BLOCK_IMAGE_CORRUPTED', + 'data': { 'device' : 'str', + 'msg' : 'str', + '*offset': 'int', + '*size' : 'int' } } + ## # @BLOCK_IO_ERROR # -- cgit v1.2.3-55-g7522