From b01e5b59a2e471d468e1854ef4de4b8f54f3bd6c Mon Sep 17 00:00:00 2001 From: drh Date: Thu, 20 Jun 2013 14:07:37 +0000 Subject: [PATCH] Disable posix_fallocate() for all systems, all the time, unless the HAVE_POSIX_FALLOCATE compile-time macro is supplied. FossilOrigin-Name: b674462243138fcee192ef05d434665e30c681c4 --- manifest | 12 ++++++------ manifest.uuid | 2 +- src/os_unix.c | 6 ------ 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/manifest b/manifest index aab16234de..4b1070228c 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Only\sdefault\sHAVE_POSIX_FALLOCATE\son\sfor\slinux,\sand\sthen\sonly\sif\sit\sis\snot\npreviously\sdefined. -D 2013-06-19T14:49:14.627 +C Disable\sposix_fallocate()\sfor\sall\ssystems,\sall\sthe\stime,\sunless\sthe\nHAVE_POSIX_FALLOCATE\scompile-time\smacro\sis\ssupplied. +D 2013-06-20T14:07:37.671 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in 5e41da95d92656a5004b03d3576e8b226858a28e F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -201,7 +201,7 @@ F src/notify.c 976dd0f6171d4588e89e874fcc765e92914b6d30 F src/os.c b4ad71336fd96f97776f75587cd9e8218288f5be F src/os.h 4a46270a64e9193af4a0aaa3bc2c66dc07c29b3f F src/os_common.h 92815ed65f805560b66166e3583470ff94478f04 -F src/os_unix.c a4c49f855cfd0783d7027a5e20dab6bb10fe4e4b +F src/os_unix.c 9eafa5458cf2ff684ddccff82c9bb113c7cad847 F src/os_win.c 5f018dbd4cec25c5b47e11432b946a7d2ccee60b F src/pager.c 79df56da9dd49aceaa4cac207484a9a82cba40ae F src/pager.h 5cb78b8e1adfd5451e600be7719f5a99d87ac3b1 @@ -1093,7 +1093,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac -P b9b30d4f9845d212e2d3206abbf2795099e5d71d -R 051331ae49dcb9481117487fe2ddd3f7 +P 2b2ade92788be623af6f57e37d98994be2cec142 +R 4c8df645fee7190a620dee659859568b U drh -Z f091211d6e3ac84847a4aa6c11062c5e +Z 4cfe85260540c90b4ee0898bd7491d71 diff --git a/manifest.uuid b/manifest.uuid index edfc6bc72c..225d72de72 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -2b2ade92788be623af6f57e37d98994be2cec142 \ No newline at end of file +b674462243138fcee192ef05d434665e30c681c4 \ No newline at end of file diff --git a/src/os_unix.c b/src/os_unix.c index e4382cbff9..152bf9a113 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -46,12 +46,6 @@ #include "sqliteInt.h" #if SQLITE_OS_UNIX /* This file is used on unix only */ -/* Use posix_fallocate() if it is available -*/ -#if !defined(HAVE_POSIX_FALLOCATE) && defined(__linux__) -# define HAVE_POSIX_FALLOCATE 1 -#endif - /* ** There are various methods for file locking used for concurrency ** control: