/ File History

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

History of test/sysfault.test

A unix VFS change replaces fsync() with fstat() when using SQLITE_NO_SYNC, so set PRAGMA synchronous=OFF in the sysfault-3 test to avoid erroneously causing errors in xSync. file: [c9f2b0d8] check-in: [4f7f3550] user: drh branch: trunk, size: 7810
Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. file: [fa776e60] check-in: [ea1404a1] user: drh branch: trunk, size: 7782
Memory-mapped I/O is now on by default. The "PRAGMA mmap_limit(N)" can be used to issue a hint to the VFS to limit mmap space to N bytes. The VFS is free to ignore that hint if desired. However, if "PRAGMA mmap_limit(0)" is used, xFetch is never called. file: [503f7271] check-in: [1b37c4ef] user: drh branch: experimental-mmap, size: 7783
Add a test that simulates an error in mmap(). file: [3258d6c8] check-in: [6ec7367d] user: dan branch: experimental-mmap, size: 7783
In os_unix.c, do not return SQLITE_BUSY to SQLite following an error in fcntl(F_UNLCK), regardless of the value of errno. file: [c79441d8] check-in: [ff6dfe6e] user: dan branch: trunk, size: 7158
Further tests for os_unix.c. file: [a2c3ca66] check-in: [a84f7711] user: dan branch: trunk, size: 7039
Add tests to syscall.test and sysfault.test. file: [be42aa42] check-in: [3d2de011] user: dan branch: trunk, size: 4626
Fix a problem whereby following an IO error in CommitPhaseTwo() of a multi-file transaction the b-tree layer could be left in TRANS_WRITE state, causing problems later on. file: [359ea90a] check-in: [dbe569a0] user: dan branch: trunk, size: 3955
Add test infrastructure (and some tests) to inject faults into os_unix.c using the new xSetSystemCall interface. file: [63144f00] check-in: [0e1d20df] user: dan branch: trunk, size: 2010 Added