Optional Journaling System

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

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.

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

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