qapi/block: Add "fatal" to BLOCK_IMAGE_CORRUPTED
commit9bf040b962f90aa2e1cef6543dfee6c96f73ef7e
authorMax Reitz <mreitz@redhat.com>
Fri, 5 Sep 2014 14:07:15 +0000 (5 16:07 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 22 Sep 2014 10:39:26 +0000 (22 11:39 +0100)
tree5af7daacd2fa1dd891e3995c810a75c58e33f2ac
parentdb866be982f970d1dfe3798465847e3fb0ae0aaf
qapi/block: Add "fatal" to BLOCK_IMAGE_CORRUPTED

Not every BLOCK_IMAGE_CORRUPTED event must be fatal; for example, when
reading from an image, they should generally not be. Nonetheless, even
an image only read from may of course be corrupted and this can be
detected during normal operation. In this case, a non-fatal event should
be emitted, but the image should not be marked corrupt (in accordance to
"fatal" set to false).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1409926039-29044-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c
qapi/block-core.json