littleFTL
----FTL based on littleFS core technologis
This is an experimental project to quickly realize the feasibility of an FTL based on the core technology of littleFS .
It took about 10 minutes from conception to implementation. So the code looks rough, but the experimental results are satisfactory.
Thanks to the compact design of the metadata pair, the entire index area occupies very small FLASH space, which brings two benefits.
-
High space utilization rate
-
File retrieval is very fast
In addition, based on the design idea of the CTZ skip table, a complete physical block stores the contents of the entire logical sector, and there is a one-to-one correspondence, so the lftl_map_find() API can be conveniently implemented.
Because of the core technology based on littleFS, littleFTL is born with the advantages of littleFS.
- low memory footprint
- power loss protection
- wear levelling
Test
Use VS2017 , open test.sln .