Skip to content

Commit 2b9618c

Browse files
committed
Merge branch 'docs/spiffs_issues' into 'master'
Documented SPIFFS issues Closes IDF-3776 See merge request espressif/esp-idf!15413
2 parents 44556fc + 9b30701 commit 2b9618c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/en/api-reference/storage/spiffs.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Notes
1414
- Currently, SPIFFS does not support directories, it produces a flat structure. If SPIFFS is mounted under ``/spiffs``, then creating a file with the path ``/spiffs/tmp/myfile.txt`` will create a file called ``/tmp/myfile.txt`` in SPIFFS, instead of ``myfile.txt`` in the directory ``/spiffs/tmp``.
1515
- It is not a real-time stack. One write operation might take much longer than another.
1616
- For now, it does not detect or handle bad blocks.
17+
- SPIFFS is able to reliably utilize only around 75% of assigned partition space.
18+
- When the filesystem is running out of space, the garbage collector is trying to find free space by scanning the filesystem multiple times, which can take up to several seconds per write function call, depending on required space. This is caused by the SPIFFS design and the issue has been reported multiple times (e.g. `here <https://github.com/espressif/esp-idf/issues/1737>`_) and in the official `SPIFFS github repository <https://github.com/pellepl/spiffs/issues/>`_. The issue can be partially mitigated by the `SPIFFS configuration <https://github.com/pellepl/spiffs/wiki/Configure-spiffs>`_.
19+
- Deleting a file does not always remove the whole file, which leaves unusable sections throughout the filesystem.
1720

1821
Tools
1922
-----

0 commit comments

Comments
 (0)