From 36d968a7935247657c20b73c6b2eeca6b889cb2e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 5 Oct 2008 13:49:29 +0300 Subject: [PATCH] Removed posix_fallocate() failure check for AIX. Apparently it can fail in multiple ways, so we now rely on configure to catch the problem. --HG-- branch : HEAD --- src/lib/file-set-size.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/file-set-size.c b/src/lib/file-set-size.c index 47de0676e0..67c8779afc 100644 --- a/src/lib/file-set-size.c +++ b/src/lib/file-set-size.c @@ -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; -- 2.47.3