]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Disable use of 'reason' field in block IO event in QEMU
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Jun 2010 14:05:30 +0000 (15:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 8 Jun 2010 14:05:42 +0000 (15:05 +0100)
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

src/qemu/qemu_monitor_json.c

index f56bcdcab0d2f9bfa7ecfe42253d8706b57abb8e..e89ad43000549df0c1dd6d8b73066494361bcc9a 100644 (file)
@@ -589,10 +589,14 @@ static void qemuMonitorJSONHandleIOError(qemuMonitorPtr mon, virJSONValuePtr dat
         VIR_WARN0("missing device in disk io error event");
     }
 
+#if 0
     if ((reason = virJSONValueObjectGetString(data, "reason")) == NULL) {
         VIR_WARN0("missing reason in disk io error event");
         reason = "";
     }
+#else
+    reason = "";
+#endif
 
     if ((actionID = qemuMonitorIOErrorActionTypeFromString(action)) < 0) {
         VIR_WARN("unknown disk io error action '%s'", action);