From patchwork Fri May 25 19:41:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 161404 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 6EB5CB6EE7 for ; Sat, 26 May 2012 05:41:25 +1000 (EST) Received: from localhost ([::1]:40932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0O3-00052r-Av for incoming@patchwork.ozlabs.org; Fri, 25 May 2012 15:41:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0Nq-0004yo-AH for qemu-devel@nongnu.org; Fri, 25 May 2012 15:41:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SY0No-0004Do-BP for qemu-devel@nongnu.org; Fri, 25 May 2012 15:41:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SY0No-0004CE-2Z for qemu-devel@nongnu.org; Fri, 25 May 2012 15:41:08 -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 q4PJf6kp000781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 May 2012 15:41:06 -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 q4PJf4QU009871; Fri, 25 May 2012 15:41:05 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Fri, 25 May 2012 16:41:06 -0300 Message-Id: <1337974879-3656-2-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1337974879-3656-1-git-send-email-lcapitulino@redhat.com> References: <1337974879-3656-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 the system (ENFILE). There's no compatibility problem because it's not used anywhere 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 5092fe7..2c97382 100644 --- a/qerror.c +++ b/qerror.c @@ -279,8 +279,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 opened files in the system", }, { .error_fmt = QERR_UNDEFINED_ERROR, diff --git a/qerror.h b/qerror.h index 4cbba48..9ddf09c 100644 --- a/qerror.h +++ b/qerror.h @@ -230,8 +230,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': {} }"