From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rugv9-000593-Kc for qemu-devel@nongnu.org; Tue, 07 Feb 2012 04:01:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rugv2-00006c-Aj for qemu-devel@nongnu.org; Tue, 07 Feb 2012 04:01:03 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:34792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rugv1-000065-SF for qemu-devel@nongnu.org; Tue, 07 Feb 2012 04:00:56 -0500 Received: by wibhi20 with SMTP id hi20so5567042wib.4 for ; Tue, 07 Feb 2012 01:00:55 -0800 (PST) Date: Tue, 7 Feb 2012 07:56:34 +0000 From: Stefan Hajnoczi Message-ID: <20120207075634.GA29427@stefanha-thinkpad.localdomain> References: <20120201030557.2990.74150.sendpatchset@skannery.in.ibm.com> <20120201030628.2990.42721.sendpatchset@skannery.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120201030628.2990.42721.sendpatchset@skannery.in.ibm.com> Subject: Re: [Qemu-devel] [RFC Patch 2/7]Qemu: Error classes for file reopen and data sync failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Supriya Kannery Cc: Kevin Wolf , Christoph Hellwig , qemu-devel@nongnu.org, Luiz Capitulino 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." > + { > .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. */