littlefs-project / littlefs

A little fail-safe filesystem designed for microcontrollers
BSD 3-Clause "New" or "Revised" License
4.92k stars 774 forks source link

what makes "Cycle detected in tail list"? #881

Open crociani19zcs opened 8 months ago

crociani19zcs commented 8 months ago

every time a usa the function lsf_mkdir all the next lfs_mount gives error -84 and it print Cycle detected in tail list. i cannot understant what's the cause of this error i always mount and unmount when i make a dir

geky commented 8 months ago

Hi @crociani19zcs, this suggests there may be an issue in the block device layer.

littlefs should never make a cycle in its tail list intentionally. This is a runtime check that indicates something has gone horribly wrong.

Mostly likely some blocks are being written into the incorrect location, or block addresses overlap because of incorrect address calculation in the block device layer.