-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Describe the bug
fs_open for CONFIG_FS_LITTLEFS_NUM_FILESth file returns -ENOMEM.
I.e. CONFIG_FS_LITTLEFS_NUM_FILES=3 and when fs_open is caled for 3rd file it returns -ENOMEM.
After incrementing CONFIG_FS_LITTLEFS_NUM_FILES and opening only CONFIG_FS_LITTLEFS_NUM_FILES-1 files problem is not present.
After increasing file_cache_pool (in littlefs_fs.c) even by 128 bytes problem is not present (CONFIG_FS_LITTLEFS_NUM_FILES=3).
To Reproduce
Try to open at the same time CONFIG_FS_LITTLEFS_NUM_FILES number of files on littleFS.
Expected behavior
No error from fs_open.
Impact
annoyance
Logs and console output
None
Environment (please complete the following information):
- OS: Linux
- ToolchainZephyr SDK 0.12.1
- Commit SHA c31ce55
Additional context
Maybe commit fcd392f caused this problem because heap size available to user != declared size of heap.