dovecot-1.2: mbox: If write fails with EFBIG, give an error that...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 25 19:37:31 EEST 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/e63d38c7d2ba
changeset: 9574:e63d38c7d2ba
user: Timo Sirainen <tss at iki.fi>
date: Tue May 25 17:37:28 2010 +0100
description:
mbox: If write fails with EFBIG, give an error that mentions ulimit -f.
diffstat:
src/lib-storage/index/mbox/mbox-storage.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r c2c1639b91ee -r e63d38c7d2ba src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c Tue May 25 16:07:43 2010 +0100
+++ b/src/lib-storage/index/mbox/mbox-storage.c Tue May 25 17:37:28 2010 +0100
@@ -86,9 +86,11 @@
mail_storage_set_error(&mbox->storage->storage,
MAIL_ERROR_NOSPACE, MAIL_ERRSTR_NO_SPACE);
} else {
+ const char *toobig_error = errno != EFBIG ? "" :
+ " (process was started with ulimit -f limit)";
mail_storage_set_critical(&mbox->storage->storage,
- "%s failed with mbox file %s: %m",
- function, mbox->path);
+ "%s failed with mbox file %s: %m%s",
+ function, mbox->path, toobig_error);
}
return -1;
}
More information about the dovecot-cvs
mailing list