ARMmbed / mbed-littlefs

[experimental] Mbed OS wrapper for LittleFS v2.0 (alpha)
https://github.com/ARMmbed/littlefs
76 stars 34 forks source link

Does LFS require ~5 free blocks ? #15

Open ranshalit opened 4 years ago

ranshalit commented 4 years ago

Hello,

It seems that if I use very small embedded with only 5 blocks, then after filling a file in size of 1 block, I can't open another file - as if it can't actually use all the blocks... Why can't we use all available blocks ? And is it that 5 blocks are used for other purpose ?

Thanks

geky commented 4 years ago

Hi @ranshalit, sorry for the late response.

This sounds like you have ended up with littlefs v1? Are you using v2 (LittleFileSystem2 in Mbed OS)?

v1 required 4 blocks for metadata, but in v2 littlefs should be able to work in as few as 2 blocks.