littlefs panic when partition is full
Posted: Tue Apr 02, 2024 1:28 am
I am using littlefs to store logs to internal flash and have been testing the behaviour when the littlefs partition is full. I expected a graceful failure of fopen() or fprintf() but I get a DivideByZero exception from lfs_alloc in the bowels of the library from fclose(). It seems that I need to leave 8K of unused space to avoid this. Am I missing some config?
ESP-IDF v5.1.2
litlefs v1.14.2
ESP-IDF v5.1.2
litlefs v1.14.2