File System Locks With Excessive Usage
Brought to you by:
ricky-zheng
If you create too many files, the uffs_open cannot get an object. This means that you cannot add new files, list files, or update files. Even worse, you cannot delete any files, which means that the whole file system is dead.
The work-around (in the attached file) is to change uffs_open to check for inadequate available tree.erased_count and also a creation flag.
I had an earlier work-around, which put the test into uffs_write, but this required that the user clean up the null directory entry.
code fragment from uffs_fd.c