Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/emubd
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2019-01-31 23:54:47 +0300
committerChristopher Haster <chaster@utexas.edu>2019-01-31 23:59:19 +0300
commit10dfc36f08081274e37133107fff3a14d180b5e4 (patch)
tree8b2c303a25d1df429601e77cc010800faf778781 /emubd
parent95c1a6339ddd9e0dbbc19bf0be0c37f629af2b5d (diff)
Fixed issue with long names causing unbounded recursion
This was caused by any commit containing entries large enough to _always_ force a compaction. This would cause littlefs to think that it would need to split infinitely because there was no base case. The fix here is pretty simple: treat any commit with only a single entry as unsplittable. This forces littlefs to first try overcompacting (fitting more in a block than what has optimal runtime), and then failing that return LFS_ERR_NOSPC for higher layers to handle. found by TheLoneWolfling
Diffstat (limited to 'emubd')
0 files changed, 0 insertions, 0 deletions