changeset 8228:c9efd231a97f HEAD

Removed posix_fallocate() failure check for AIX. Apparently it can fail in multiple ways, so we now rely on configure to catch the problem.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Oct 2008 13:49:29 +0300
parents 9886bf0a4c40
children 3718d603f9d0
files src/lib/file-set-size.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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;