Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8207:2442529e4cec HEAD
AIX: Silently ignore posix_fallocate() failures.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 22 Sep 2008 21:23:37 +0300 |
parents | 53ad035a2d0b |
children | f67d4a0d423b |
files | src/lib/file-set-size.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/file-set-size.c Mon Sep 22 21:08:26 2008 +0300 +++ b/src/lib/file-set-size.c Mon Sep 22 21:23:37 2008 +0300 @@ -46,13 +46,13 @@ if (posix_fallocate(fd, st.st_size, size - st.st_size) == 0) return 0; - if (errno != EINVAL) { + if (errno != EINVAL /* Solaris */ && + errno != ENOPROTOOPT /* AIX */) { if (!ENOSPACE(errno)) i_error("posix_fallocate() failed: %m"); return -1; } - /* Solaris seems to fail with EINVAL if it's not supported - by the kernel. Fallback to writing. */ + /* Not supported by kernel, fallback to writing. */ posix_fallocate_supported = FALSE; } #endif