mbed-os/features/filesystem
Christopher Haster 4c93aa262e littlefs: Fixed issue updating dir struct when extended dir chain
Like most of the lfs_dir_t functions, lfs_dir_append is responsible for
updating the lfs_dir_t struct if the underlying directory block is
moved. This property makes handling worn out blocks much easier by
removing the amount of state that needs to be considered during a
directory update.

However, extending the dir chain is a bit of a corner case. It's not
changing the old block, but callers of lfs_dir_append do assume the
"entry" will reside in "dir" after lfs_dir_append completes.

This issue only occurs when creating files, since mkdir does not use
the entry after lfs_dir_append. Unfortunately, the tests against
extending the directory chain were all made using mkdir.

Found by schouleu
2018-03-26 18:52:24 +01:00
..
bd typos 2018-03-26 18:52:24 +01:00
fat dir seek fixed - dptr was not updated before checking 2018-03-26 18:52:24 +01:00
littlefs littlefs: Fixed issue updating dir struct when extended dir chain 2018-03-26 18:52:24 +01: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