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-30 06:53:56 +0300
committerChristopher Haster <chaster@utexas.edu>2019-01-30 07:43:19 +0300
commit95c1a6339ddd9e0dbbc19bf0be0c37f629af2b5d (patch)
tree448e93c20db940dc7485bd23f4108a804b003bb4 /emubd
parent173c21215159236b2d93caf2856636d29680ef79 (diff)
Fixed corner case in block_cycles eviction logic
The problem was when we allocate a dir-pair, it's possible for the revision count to immediately overflow and the dir-pair be evicted and returned to the unused blocks without being written even once. In the case that block_cycles = 1, this made it impossible to ever create a dir-pair, even in lfs_format. I've also added a bit of logic to lfs_dir_alloc that will prevent any immediate evictions because of the revision count. found by TheLoneWolfling
Diffstat (limited to 'emubd')
0 files changed, 0 insertions, 0 deletions