block: extend BLOCK_IO_ERROR with reason string
commit624ff5736ef9245bb8070400ccaf65857b6d1c38
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 11 Sep 2014 14:25:48 +0000 (11 10:25 -0400)
committerKevin Wolf <kwolf@redhat.com>
Thu, 11 Sep 2014 15:14:13 +0000 (11 17:14 +0200)
treec7c92007710a861fc6d8f75f7f17261688ddc558
parent745a9bb9cdcdcc50219d14704477c5cd678c4a7e
block: extend BLOCK_IO_ERROR with reason string

BLOCK_IO_ERROR events are logged by libvirt, which helps with
post mortem analysis of guests. However, one information that
we miss today is a human readable string describing the cause
of the I/O error.

This commit adds that string it to BLOCK_IO_ERROR. Note that
this string is a debugging aid for humans, meaning that it
should not parsed by applications.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
qapi/block-core.json