spiffs icon indicating copy to clipboard operation
spiffs copied to clipboard

SPIFFS_ERR_OUT_OF_FILE_DESCS Clarification

Open feistyz opened this issue 6 years ago • 1 comments

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?

feistyz avatar Nov 29 '17 17:11 feistyz

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.

bugadani avatar Dec 04 '17 19:12 bugadani