In a journaling file system, the information about the changes is recorded in a separate log (the journal) before the indexes to the files are updated.If a power or other system failure corrupts the indexes as they are being rewritten, the operating system can use the log to repair them when the computer is restarted.