mbed-os/features/filesystem
Christopher Haster 9e03b24120 littlefs: Fixed lookahead overflow and removed unbounded lookahead pointers
As pointed out by davidefer, the lookahead pointer modular arithmetic
does not work around integer overflow when the pointer size is not a
multiple of the block count.

To avoid overflow problems, the easy solution is to stop trying to
work around integer overflows and keep the lookahead offset inside the
block device. To make this work, the ack was modified into a resetable
counter that is decremented every block allocation.

As a plus, quite a bit of the allocation logic ended up simplified.
2018-04-11 22:34:40 -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 lookahead overflow and removed unbounded lookahead pointers 2018-04-11 22:34:40 -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