mbed-os/features/filesystem/littlefs/littlefs/tests
Christopher Haster 7f17a9b8da 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-12 15:52:32 -05:00
..
stats.py Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
template.fmt Merge commit '451c3d137fbd49ce5e00e765af66c16bb5169ee9' into lfs-update 2018-02-22 18:43:04 -06:00
test.py Merge commit '451c3d137fbd49ce5e00e765af66c16bb5169ee9' into lfs-update 2018-02-22 18:43:04 -06:00
test_alloc.sh littlefs: Fix incorrect lookahead population before ack 2018-02-08 18:53:19 -06:00
test_corrupt.sh Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
test_dirs.sh littlefs: Fixed issue updating dir struct when extended dir chain 2018-03-12 15:52:32 -05:00
test_files.sh littlefs: Fixed issue updating dir struct when extended dir chain 2018-03-12 15:52:32 -05:00
test_format.sh Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
test_move.sh Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
test_orphan.sh Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
test_parallel.sh Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00' 2017-11-22 16:02:21 -06:00
test_paths.sh littlefs: Fixed handling of root as target for create operations 2018-02-22 15:56:24 -06:00
test_seek.sh littlefs: Fixed positive seek bounds checking 2018-01-03 18:07:17 -06:00
test_truncate.sh Merge commit '451c3d137fbd49ce5e00e765af66c16bb5169ee9' into lfs-update 2018-02-22 18:43:04 -06:00