mbed-os/features/filesystem
Christopher Haster 73e87a2f43 littlefs: Fix incorrect lookahead population before ack
Rather than tracking all in-flight blocks blocks during a lookahead,
littlefs uses an ack scheme to mark the first allocated block that
hasn't reached the disk yet. littlefs assumes all blocks since the
last ack are bad or in-flight, and uses this to know when it's out
of storage.

However, these unacked allocations were still being populated in the
lookahead buffer. If the whole block device fits in the lookahead
buffer, _and_ littlefs managed to scan around the whole storage while
an unacked block was still in-flight, it would assume the block was
free and misallocate it.

The fix is to only fill the lookahead buffer up to the last ack.
The internal free structure was restructured to simplify the runtime
calculation of lookahead size.
2018-02-23 17:08:31 -06:00
..
bd mbr: Added note about limitations 2018-02-23 17:08:29 -06:00
fat fatfs: Removed extra MBR block 2018-02-23 17:08:28 -06:00
littlefs littlefs: Fix incorrect lookahead population before ack 2018-02-23 17:08:31 -06:00
Dir.cpp fs: Fix dir open during failure condition 2017-09-22 18:39:52 -05:00
Dir.h Fix doxygen warnings in 'features/filesystem' 2017-06-08 15:48:21 -05:00
File.cpp Correct return type of FileHandle::size() 2017-05-31 15:02:11 +03:00
File.h Correct return type of FileHandle::size() 2017-05-31 15:02:11 +03:00
FileSystem.cpp Build with external tool fails: missing includes 2017-08-30 17:21:53 +02:00
FileSystem.h fs: Added FileSystem::reformat 2017-08-14 17:05:40 -05:00
mbed_filesystem.h Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00
mbed_lib.json Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00