mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qmp event: Refactor QUORUM_REPORT_BAD
Introduce QuorumOpType, and make QUORUM_REPORT_BAD compatible with it. Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Cc: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
58346b82ed
commit
0ae053b7e1
4 changed files with 41 additions and 7 deletions
|
@ -325,6 +325,7 @@ Emitted to report a corruption of a Quorum file.
|
|||
|
||||
Data:
|
||||
|
||||
- "type": Quorum operation type
|
||||
- "error": Error message (json-string, optional)
|
||||
Only present on failure. This field contains a human-readable
|
||||
error message. There are no semantics other than that the
|
||||
|
@ -336,10 +337,18 @@ Data:
|
|||
|
||||
Example:
|
||||
|
||||
Read operation:
|
||||
{ "event": "QUORUM_REPORT_BAD",
|
||||
"data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5 },
|
||||
"data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5,
|
||||
"type": "read" },
|
||||
"timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
|
||||
|
||||
Flush operation:
|
||||
{ "event": "QUORUM_REPORT_BAD",
|
||||
"data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120,
|
||||
"type": "flush", "error": "Broken pipe" },
|
||||
"timestamp": { "seconds": 1456406829, "microseconds": 291763 } }
|
||||
|
||||
Note: this event is rate-limited.
|
||||
|
||||
RESET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue