spiffs
spiffs copied to clipboard
SPIFFS_ERR_OUT_OF_FILE_DESCS Clarification
I am getting a SPIFFS_ERR_OUT_OF_FILE_DESCS. However, I am not sure I fully understand what it means.
Does it mean that I have too many open files? Or does it mean that there is a limit to how many files there can be and this limit has been reached?
Looking at the code it seems to be a function of fd buffer size. I had it set to 4sizeof(spiffs_fd). I have increased it to 10sizeof(spiffs_fd) and the issue went away.
Based on this, I think this error means I had too many open files?
As far as I know, yes. Spiffs is designed to operate with minimal RAM footprint, so it would be logical to have a tight limit on open files.