dovecot-1.2: Removed posix_fallocate() failure check for AIX.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Sun Oct  5 13:49:38 EEST 2008
    
    
  
details:   http://hg.dovecot.org/dovecot-1.2/rev/c9efd231a97f
changeset: 8228:c9efd231a97f
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 05 13:49:29 2008 +0300
description:
Removed posix_fallocate() failure check for AIX.
Apparently it can fail in multiple ways, so we now rely on configure to
catch the problem.
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
src/lib/file-set-size.c |    3 +--
diffs (13 lines):
diff -r 9886bf0a4c40 -r c9efd231a97f src/lib/file-set-size.c
--- a/src/lib/file-set-size.c	Sun Oct 05 13:48:32 2008 +0300
+++ b/src/lib/file-set-size.c	Sun Oct 05 13:49:29 2008 +0300
@@ -46,8 +46,7 @@ int file_set_size(int fd, off_t size)
 		if (posix_fallocate(fd, st.st_size, size - st.st_size) == 0)
 			return 0;
 
-		if (errno != EINVAL /* Solaris */ &&
-		    errno != ENOPROTOOPT /* AIX */) {
+		if (errno != EINVAL /* Solaris */) {
 			if (!ENOSPACE(errno))
 				i_error("posix_fallocate() failed: %m");
 			return -1;
    
    
More information about the dovecot-cvs
mailing list