Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10042351004235 Optional Journaling System Anchor10190711019071µC/FS’s FAT journaling module (optional feature) provides protection against unexpected power-failures that may occur during file system operations.anchor10190731019073

Since cluster allocation information is stored separately from file data and meta data (directory entries), even file operations that make a simple change to one file (e.g., adding data to the end of a file, updating data in place) are non-atomic. An atomic operation is an operation that will either complete or not happen at all, but never halfway in between.

Anchor10179421017942The repercussions of this can be innocuous – wasted disk space, for example – or very serious – corrupted directories, corrupted files, and data loss. Anchor10145281014528

In order to prevent such corruption, you can use µC/FS’s optional journaling module.