]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Substitute VIR_ERR_NO_SUPPORT with VIR_ERR_OPERATION_INVALID
authorOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 06:59:16 +0000 (14:59 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 06:59:16 +0000 (14:59 +0800)
* src/qemu/qemu_monitor_text.c: Error like "this function is not
supported by the connection driver" is confused obviously.

src/qemu/qemu_monitor_text.c

index 52d924abd07becddc26cb9810d3c8342afe90c15..ad3ffe94e2310e3850c225eb9691f99aa44ed9e4 100644 (file)
@@ -713,7 +713,7 @@ int qemuMonitorTextGetBlockStatsInfo(qemuMonitorPtr mon,
      * to detect if qemu supports the command.
      */
     if (strstr(info, "\ninfo ")) {
-        qemuReportError(VIR_ERR_NO_SUPPORT,
+        qemuReportError(VIR_ERR_OPERATION_INVALID,
                         "%s",
                         _("'info blockstats' not supported by this qemu"));
         goto cleanup;
@@ -1388,7 +1388,7 @@ int qemuMonitorTextMigrate(qemuMonitorPtr mon,
     /* If the command isn't supported then qemu prints:
      * unknown command: migrate" */
     if (strstr(info, "unknown command:")) {
-        qemuReportError(VIR_ERR_NO_SUPPORT,
+        qemuReportError(VIR_ERR_OPERATION_INVALID,
                         _("migration to '%s' not supported by this qemu: %s"), dest, info);
         goto cleanup;
     }
@@ -1652,7 +1652,7 @@ int qemuMonitorTextAddPCIHostDevice(qemuMonitorPtr mon,
     }
 
     if (strstr(reply, "invalid type: host")) {
-        qemuReportError(VIR_ERR_NO_SUPPORT, "%s",
+        qemuReportError(VIR_ERR_OPERATION_INVALID, "%s",
                         _("PCI device assignment is not supported by this version of qemu"));
         goto cleanup;
     }
@@ -1839,7 +1839,7 @@ int qemuMonitorTextSendFileHandle(qemuMonitorPtr mon,
     /* If the command isn't supported then qemu prints:
      * unknown command: getfd" */
     if (strstr(reply, "unknown command:")) {
-        qemuReportError(VIR_ERR_NO_SUPPORT,
+        qemuReportError(VIR_ERR_OPERATION_INVALID,
                         _("qemu does not support sending of file handles: %s"),
                         reply);
         goto cleanup;
@@ -1882,7 +1882,7 @@ int qemuMonitorTextCloseFileHandle(qemuMonitorPtr mon,
     /* If the command isn't supported then qemu prints:
      * unknown command: getfd" */
     if (strstr(reply, "unknown command:")) {
-        qemuReportError(VIR_ERR_NO_SUPPORT,
+        qemuReportError(VIR_ERR_OPERATION_INVALID,
                         _("qemu does not support closing of file handles: %s"),
                         reply);
         goto cleanup;