Replies: 1 comment 2 replies
-
The block size must match the record size of the flash, which is usually 4096 bytes. But as far as I recall tests I made a while ago, you can create more files with LFS2 than number of blocks. LFS is able to share a block between files. That does not apply to FAT. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to set up the main file system on a ESP32 device with a smaller block size, to be able to store many (200 to 300) small files (5 kbytes average). Standard block size is 4096 bytes:
What I tried is:
Same code with VfsFat instead of VfsLfs2 builds the file system, but on reboot I get:
Any other way to achieve smaller block sizes (except rebuilding Micropython)?
Beta Was this translation helpful? Give feedback.
All reactions