Journaling File Systems: Recovery, Journal Design, and Alternatives
5 flashcards · 5 quiz questions · 5 match pairs · 5 fill-in sentences · English
Your progress is kept in this browser only.Sign up to save it
Summary
A file system often needs to make several related changes when a file or directory is updated. If a crash interrupts those changes, the file system can be left in an inconsistent state. This lesson introduces journaling, explains why it helps, and describes how recovery works.
A crash between any two steps can leave the file system in an invalid intermediate state. If the directory entry is removed but the inode is not released, the inode may become orphaned and storage may be leaked. If the inode is released but the blocks are not, those blocks remain unavailable for new files. Simply changing the order does not solve the problem: releasing blocks too early could allow another file to reuse them while the old directory entry still refers to them.
All flashcards
Quiz questions
Based on the Wikipedia article Journaling file system, licensed CC BY-SA 4.0. Adapted into a summary, flashcards and quizzes.