mbed-os/features/filesystem
Christopher Haster 47bee2343c littlefs: Fixed issue with lookahead trusting old lookahead blocks
One of the big simplifications in littlefs's implementation is the
complete lack of tracking free blocks, allowing operations to simply
drop blocks that are no longer in use.

However, this means the lookahead buffer can easily contain outdated
blocks that were previously deleted. This is usually fine, as littlefs
will rescan the storage if it can't find a free block in the lookahead
buffer, but after changes that caused littlefs to more conservatively
respect the alloc acks (e611cf5), any scanned blocks after an ack would
be incorrectly trusted.

The fix is to eagerly scan ahead in the lookahead when we allocate so
that alloc acks are better able to discredit old lookahead blocks. Since
usually alloc acks are tightly coupled to allocations of one or two blocks,
this allows littlefs to properly rescan every set of allocations.

This may still be a concern if there is a long series of worn out
blocks, but in the worst case littlefs will conservatively avoid using
blocks it's not sure about.

Found by davidefer
2018-04-11 14:41:01 -05:00
..
bd Add overloaded get_erase_size API with address parameter to all block devices 2018-03-23 00:34:45 +02:00
fat dir seek fixed - dptr was not updated before checking 2018-03-14 14:40:08 -05:00
littlefs littlefs: Fixed issue with lookahead trusting old lookahead blocks 2018-04-11 14:41:01 -05: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 Added statvfs API to get storage statistics 2017-12-29 16:42:31 -06:00
FileSystem.h Added statvfs API to get storage statistics 2017-12-29 16:42:31 -06: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