dovecot: If mail_nfs_index=yes, give an error if mmap_disable=no...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 13 16:10:26 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/5eb728db3fd5
changeset: 6282:5eb728db3fd5
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 13 16:08:30 2007 +0300
description:
If mail_nfs_index=yes, give an error if mmap_disable=no / fsync_disable=yes.
diffstat:
1 file changed, 9 insertions(+)
src/master/master-settings.c | 9 +++++++++
diffs (19 lines):
diff -r ffe50f268e4e -r 5eb728db3fd5 src/master/master-settings.c
--- a/src/master/master-settings.c Sun Aug 12 19:41:55 2007 +0300
+++ b/src/master/master-settings.c Mon Aug 13 16:08:30 2007 +0300
@@ -794,6 +794,15 @@ static bool settings_verify(struct setti
return FALSE;
}
+ if (set->mail_nfs_index && !set->mmap_disable) {
+ i_error("mail_nfs_index=yes requires mmap_disable=yes");
+ return FALSE;
+ }
+ if (set->mail_nfs_index && set->fsync_disable) {
+ i_error("mail_nfs_index=yes requires fsync_disable=no");
+ return FALSE;
+ }
+
#ifdef HAVE_MODULES
if (*set->mail_plugins != '\0' &&
access(set->mail_plugin_dir, R_OK | X_OK) < 0) {
More information about the dovecot-cvs
mailing list