qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC Patch 2/7]Qemu: Error classes for file reopen and


From: Supriya Kannery
Subject: Re: [Qemu-devel] [RFC Patch 2/7]Qemu: Error classes for file reopen and data sync failure
Date: Mon, 13 Feb 2012 18:43:35 +0530
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.20) Gecko/20110817 Fedora/3.1.12-1.fc14 Thunderbird/3.1.12

On 02/07/2012 01:26 PM, Stefan Hajnoczi wrote:
On Wed, Feb 01, 2012 at 08:36:28AM +0530, Supriya Kannery wrote:
Index: qemu/qerror.c
===================================================================
--- qemu.orig/qerror.c
+++ qemu/qerror.c
@@ -108,6 +108,14 @@ static const QErrorStringTable qerror_ta
          .desc      = "Device '%(device)' has multiple child busses",
      },
      {
+        .error_fmt = QERR_DATA_SYNC_FAILED,
+        .desc      = "Syncing of data failed for device '%(device)'",
+    },
+    {
+        .error_fmt = QERR_REOPEN_FILE_FAILED,
+        .desc      = "Could not reopen '%(filename)'",
+    },

The comment in qerror.c says:

"Please keep the entries in alphabetical order.
Use scripts/check-qerror.sh to check."


ok

+    {
          .error_fmt = QERR_DEVICE_NO_BUS,
          .desc      = "Device '%(device)' has no child bus",
      },
Index: qemu/qerror.h
===================================================================
--- qemu.orig/qerror.h
+++ qemu/qerror.h
@@ -117,6 +117,9 @@ QError *qobject_to_qerror(const QObject
  #define QERR_DEVICE_NOT_FOUND \
      "{ 'class': 'DeviceNotFound', 'data': { 'device': %s } }"

+#define QERR_DATA_SYNC_FAILED \
+    "{ 'class': 'DataSyncFailed', 'data': { 'device': %s } }"
+

Same here:

/*
  * QError class list
  * Please keep the definitions in alphabetical order.
  * Use scripts/check-qerror.sh to check.
  */


ok




reply via email to

[Prev in Thread] Current Thread [Next in Thread]