µC/FS’s FAT journaling module (optional feature) provides protection against unexpected power-failures that may occur during file system operations.
Anchor
1019073
1019073
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.
Anchor
1017942
1017942
The repercussions of this can be innocuous – wasted disk space, for example – or very serious – corrupted directories, corrupted files, and data loss.
Anchor
1014528
1014528
In order to prevent such corruption, you can use µC/FS’s optional journaling module.