From patchwork Wed May 30 14:14:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 161973 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3876FB7043 for ; Thu, 31 May 2012 00:21:49 +1000 (EST) Received: from localhost ([::1]:57389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjmU-0003IG-3d for incoming@patchwork.ozlabs.org; Wed, 30 May 2012 10:21:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjmJ-0003HA-0J for qemu-devel@nongnu.org; Wed, 30 May 2012 10:21:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZjmC-0002WT-PH for qemu-devel@nongnu.org; Wed, 30 May 2012 10:21:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZjgk-0007YP-SH for qemu-devel@nongnu.org; Wed, 30 May 2012 10:21:28 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4UEEkCS016509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 30 May 2012 10:14:46 -0400 Received: from localhost (ovpn-116-69.ams2.redhat.com [10.36.116.69]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4UEEi2o013885; Wed, 30 May 2012 10:14:45 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 30 May 2012 11:14:48 -0300 Message-Id: <1338387301-10074-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1338387301-10074-1-git-send-email-lcapitulino@redhat.com> References: <1338387301-10074-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: aliguori@us.ibm.com, alevy@redhat.com, armbru@redhat.com Subject: [Qemu-devel] [PATCH 01/14] qerror: extend QERR_TOO_MANY_FILES X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Specify it's too many open files in system (ENFILE). There's no compatibility issue because QERR_TOO_MANY_FILES is actually not used today. Signed-off-by: Luiz Capitulino --- qerror.c | 4 ++-- qerror.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qerror.c b/qerror.c index 92c4eff..6c78759 100644 --- a/qerror.c +++ b/qerror.c @@ -283,8 +283,8 @@ static const QErrorStringTable qerror_table[] = { .desc = "Could not set password", }, { - .error_fmt = QERR_TOO_MANY_FILES, - .desc = "Too many open files", + .error_fmt = QERR_TOO_MANY_FILES_SYS, + .desc = "Too many open files in system", }, { .error_fmt = QERR_UNDEFINED_ERROR, diff --git a/qerror.h b/qerror.h index b4c8758..fb7c642 100644 --- a/qerror.h +++ b/qerror.h @@ -233,8 +233,8 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_SET_PASSWD_FAILED \ "{ 'class': 'SetPasswdFailed', 'data': {} }" -#define QERR_TOO_MANY_FILES \ - "{ 'class': 'TooManyFiles', 'data': {} }" +#define QERR_TOO_MANY_FILES_SYS \ + "{ 'class': 'TooManyFilesInSystem', 'data': {} }" #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }"