diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-09-29 16:47:58 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-10-07 13:34:22 +0200 |
commit | 2bf7e10f78ebf67fbef364dce37ae844ba3c7a62 (patch) | |
tree | ba6e52cc41342bcf277d5c1702ad0293d8769532 /docs | |
parent | c5f3014b82adc0e8f50bf5052031503d3467bea3 (diff) | |
download | qemu-2bf7e10f78ebf67fbef364dce37ae844ba3c7a62.zip |
block: Add node name to BLOCK_IO_ERROR event
The event currently only contains the BlockBackend name. However, with
anonymous BlockBackends, this is always the empty string. Add the node
name so that the user can still see which block device caused the event.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/qmp-events.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/qmp-events.txt b/docs/qmp-events.txt index 7967ec4c5a..62a9f9ca66 100644 --- a/docs/qmp-events.txt +++ b/docs/qmp-events.txt @@ -65,7 +65,12 @@ Emitted when a disk I/O error occurs. Data: -- "device": device name (json-string) +- "device": device name. This is always present for compatibility + reasons, but it can be empty ("") if the image does not + have a device name associated. (json-string) +- "node-name": node name. Note that errors may be reported for the root node + that is directly attached to a guest device rather than for the + node where the error occurred. (json-string) - "operation": I/O operation (json-string, "read" or "write") - "action": action that has been taken, it's one of the following (json-string): "ignore": error has been ignored @@ -76,6 +81,7 @@ Example: { "event": "BLOCK_IO_ERROR", "data": { "device": "ide0-hd1", + "node-name": "#block212", "operation": "write", "action": "stop" }, "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } |