提交 b490f2c1 编写于 作者: D Daniel P. Berrange

Disable use of 'reason' field in block IO event in QEMU

QEMU upstream decided against adding a 'reason' field to
the block IO event in QMP. Disable this code to remove a
annoying warning message. It will be renabled when the
error string reason is re-introduced in QEMU
上级 53fc1d8a
...@@ -589,10 +589,14 @@ static void qemuMonitorJSONHandleIOError(qemuMonitorPtr mon, virJSONValuePtr dat ...@@ -589,10 +589,14 @@ static void qemuMonitorJSONHandleIOError(qemuMonitorPtr mon, virJSONValuePtr dat
VIR_WARN0("missing device in disk io error event"); VIR_WARN0("missing device in disk io error event");
} }
#if 0
if ((reason = virJSONValueObjectGetString(data, "reason")) == NULL) { if ((reason = virJSONValueObjectGetString(data, "reason")) == NULL) {
VIR_WARN0("missing reason in disk io error event"); VIR_WARN0("missing reason in disk io error event");
reason = ""; reason = "";
} }
#else
reason = "";
#endif
if ((actionID = qemuMonitorIOErrorActionTypeFromString(action)) < 0) { if ((actionID = qemuMonitorIOErrorActionTypeFromString(action)) < 0) {
VIR_WARN("unknown disk io error action '%s'", action); VIR_WARN("unknown disk io error action '%s'", action);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册