How To Use Journaling
The journaling system can be started on a per-volume basis, by calling FS_FAT_JournalOpen()
followed by FS_FAT_JournalStart()
(after the volume has been mounted but prior to any file system modifications). Likewise, the journal can be stopped with FS_FAT_JournalStop()
and closed with FS_FAT_JournalClose()
. It is important to note that the journaling module should not be stopped unless you want to unmount a journaled volume. Likewise, the journaling module should be started as soon as the volume is mounted. If any modifications were to be made on the file system after the journaling module has been stopped or before it has been started, the file system could become corrupted.