mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Do not set device-capabilities flags SEQUENTIAL or SAFE_APPEND for f2fs
file-systems. FossilOrigin-Name: 4477e60cd801dab7a8aec12c5bc5e81e774bedbfed38abbc8eb8b37336141a44
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user