Files
MuditaOS/module-db/Database/sqlite3vfs.cpp
Lucjan Bryndza 445010d7f9 [EGD-4135] Database interface improvement (#881)
Fix for unexcepted power failure by adding new implemented
function ff_fflush.
Improve write interface to complies with Linux lseek syscall.
Linux lseek syscall allows to lseek outsite the file size.
When write if lseek is out of range, write syscall write data to new
offset and fill the gap with zeros.
Free RTOS-FAT behaviour doesn't support sparse files, so we need
to implement this functionality manually on the sqlite3 vfs inteface
layer.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-23 09:19:57 +02:00

23 KiB