aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2017-07-27 18:34:00 +0000
committerdan <dan@noemail.net>2017-07-27 18:34:00 +0000
commit77b4f528fab48e28b179a351f2b478667063266b (patch)
tree68c1dfffeeb81f17711f5b697031628e0fcd0e6b /src/os_unix.c
parent33447e7793436a6b93451c5ab6467f5fea25ed1a (diff)
downloadsqlite-77b4f528fab48e28b179a351f2b478667063266b.tar.gz
sqlite-77b4f528fab48e28b179a351f2b478667063266b.zip
Do not set device-capabilities flags SEQUENTIAL or SAFE_APPEND for f2fs
file-systems. FossilOrigin-Name: 4477e60cd801dab7a8aec12c5bc5e81e774bedbfed38abbc8eb8b37336141a44
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index f45c86cb6..430c5386e 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3910,11 +3910,7 @@ static void setDeviceCharacteristics(unixFile *pFd){
/* Check for support for F2FS atomic batch writes. */
res = osIoctl(pFd->h, F2FS_IOC_GET_FEATURES, &f);
if( res==0 && (f & F2FS_FEATURE_ATOMIC_WRITE) ){
- pFd->deviceCharacteristics =
- SQLITE_IOCAP_BATCH_ATOMIC |
- SQLITE_IOCAP_ATOMIC |
- SQLITE_IOCAP_SEQUENTIAL |
- SQLITE_IOCAP_SAFE_APPEND;
+ pFd->deviceCharacteristics = SQLITE_IOCAP_BATCH_ATOMIC;
}
#endif /* __linux__ && SQLITE_ENABLE_BATCH_ATOMIC_WRITE */