diff options
author | Wenchao Xia <wenchaoqemu@gmail.com> | 2014-06-18 08:43:46 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-06-23 11:12:27 -0400 |
commit | c120f0fa14cd763d57270933713dbb25de5446fd (patch) | |
tree | b93a97e7a50ef37d021108cca48cde24b0ad6b7d /qapi/block-core.json | |
parent | 5a2d2cbd8850db7c03d1333d6c29aab6e3bc75ad (diff) | |
download | qemu-c120f0fa14cd763d57270933713dbb25de5446fd.tar.gz qemu-c120f0fa14cd763d57270933713dbb25de5446fd.tar.bz2 qemu-c120f0fa14cd763d57270933713dbb25de5446fd.zip |
qapi event: convert BLOCK_IMAGE_CORRUPTED
Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
-rw-r--r-- | qapi/block-core.json | 24 |
1 files changed, 24 insertions, 0 deletions
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 @@ -1429,6 +1429,30 @@ ## +# @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 # # Emitted when a disk I/O error occurs |