joltwallet / esp_littlefs

LittleFS port for ESP-IDF
MIT License
259 stars 97 forks source link

FAT was too fragile? #117

Closed ramiws closed 1 year ago

ramiws commented 1 year ago

Hi,

Is there more of technical or subjective description of why FAT is too fragile? I am porting an esp8266 code that used littltFS to esp32-s3 idf and I had to use FAT as it seems the only thing officially supported, but now I found this repo in the official components. So the official FAT implementation is fragile, and this implementation of littlefs is not? but it is semi official? could you clarify what is the deal?

BrianPugh commented 1 year ago
  1. If power is removed while performing a write with FAT, there's a very real possibility that the entire filesystem becomes corrupt. You can see a writeup here: https://os.mbed.com/blog/entry/littlefs-high-integrity-embedded-fs/

  2. This implementation is not written or maintained by espressif, but I do my best maintaining it. It is properly packaged and hosted on espressif's component registry.

  3. It's semi-official in the sense that it is used in arduino-esp32 and is the generally recommended way of using littlefs on the esp32.

ramiws commented 1 year ago

Thanks for clarifying! Would littlefs work with flash encryption on esp32 variants? and it has own internal weal levelling? I do not have to use the one in idf?

BrianPugh commented 1 year ago

It should work with encryption and it has its own internal wear leveling. However, I have not independently done an extensive test on either.

BrianPugh commented 1 year ago

closing due to inactivity.