Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. A journaling file
system is a file system that keeps track of the changes that will be
made in a journal before committing them to the main file system. In the
event of a system crash or power failure, such file systems are quicker
to bring back online and less likely to become corrupted. Updating file
systems to reflect changes to files and directories usually requires
many separate write operations. This makes it possible for an
interruption between writes to leave data structures in an invalid
intermediate state. If a crash occurs between steps 1 and 2, there will
be an orphaned inode and hence a storage leak. On the other hand, if
only step 2 is performed first before the crash, the not-yet-deleted
file will be marked free and possibly be overwritten by something else.