aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-12-07 21:37:14 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-07 16:34:36 -0600
commita488be27e5fbfd78e3c7f98706e0c2f6af402061 (patch)
treec58993ba2bfe8af9e07ad5d6daabdbb50bd11e1d
parent7a046f5f14d3de026197dc08c389cd1f23a3dddf (diff)
QError: New QERR_TOO_MANY_FILES
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--qerror.c4
-rw-r--r--qerror.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index aa89a3d7db..8ffe4f673b 100644
--- a/qerror.c
+++ b/qerror.c
@@ -109,6 +109,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Could not set password",
},
{
+ .error_fmt = QERR_TOO_MANY_FILES,
+ .desc = "Too many open files",
+ },
+ {
.error_fmt = QERR_UNDEFINED_ERROR,
.desc = "An undefined error has ocurred",
},
diff --git a/qerror.h b/qerror.h
index 48f1ab6b4e..9462d5cb9d 100644
--- a/qerror.h
+++ b/qerror.h
@@ -92,6 +92,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_UNDEFINED_ERROR \
"{ 'class': 'UndefinedError', 'data': {} }"
+#define QERR_TOO_MANY_FILES \
+ "{ 'class': 'fd_too_many_files', 'data': {} }"
+
#define QERR_VNC_SERVER_FAILED \
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"