Software /
code /
prosody
Changeset
5068:14d4fc5859b9
util.pposix: Put the warning back, mention how we might still use posix_fallocate()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 Jul 2012 23:43:34 +0200 |
parents | 5067:7db1056c63a9 |
children | 5069:7b298f8bcbcb |
files | util-src/pposix.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/pposix.c Tue Jul 31 23:38:02 2012 +0200 +++ b/util-src/pposix.c Tue Jul 31 23:43:34 2012 +0200 @@ -674,6 +674,10 @@ lua_pushstring(L, strerror(errno)); return 2; } +#else +#warning Only using posix_fallocate() fallback. +#warning Linux fallocate() is strongly recommended if available: recompile with -D_GNU_SOURCE +#warning Note that posix_fallocate() will still be used on filesystems that dont support fallocate() #endif if(posix_fallocate(fileno(f), offset, len) == 0)