/ Check-in [b6744622]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Disable posix_fallocate() for all systems, all the time, unless the HAVE_POSIX_FALLOCATE compile-time macro is supplied.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b674462243138fcee192ef05d434665e30c681c4
User & Date: drh 2013-06-20 14:07:37
Context
2013-06-21
18:32
Merge updates from trunk. check-in: fa2a91e6 user: mistachkin tags: toTypeFuncs
18:29
Merge the fts4-notindexed branch with the trunk. check-in: 361084e1 user: dan tags: trunk
17:30
Add the "notindexed" option to fts4. check-in: 8ff2b8f5 user: dan tags: fts4-notindexed
2013-06-20
18:53
VSIX tooling changes to support Visual Studio 2013. check-in: c5954c58 user: mistachkin tags: vsix2013
14:17
Pull in the posix_fallocate() change from trunk. check-in: d94db3fd user: drh tags: nextgen-query-plan-exp
14:07
Disable posix_fallocate() for all systems, all the time, unless the HAVE_POSIX_FALLOCATE compile-time macro is supplied. check-in: b6744622 user: drh tags: trunk
2013-06-19
14:49
Only default HAVE_POSIX_FALLOCATE on for linux, and then only if it is not previously defined. check-in: 2b2ade92 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

    42     42   **   *  Locking primitives for the proxy uber-locking-method. (MacOSX only)
    43     43   **   *  Definitions of sqlite3_vfs objects for all locking methods
    44     44   **      plus implementations of sqlite3_os_init() and sqlite3_os_end().
    45     45   */
    46     46   #include "sqliteInt.h"
    47     47   #if SQLITE_OS_UNIX              /* This file is used on unix only */
    48     48   
    49         -/* Use posix_fallocate() if it is available
    50         -*/
    51         -#if !defined(HAVE_POSIX_FALLOCATE) && defined(__linux__)
    52         -# define HAVE_POSIX_FALLOCATE 1
    53         -#endif
    54         -
    55     49   /*
    56     50   ** There are various methods for file locking used for concurrency
    57     51   ** control:
    58     52   **
    59     53   **   1. POSIX locking (the default),
    60     54   **   2. No locking,
    61     55   **   3. Dot-file locking,