Homework: Journaling

Read: Journaling the Linux ext2fs Filesystem

Hand-In Procedure

You are to turn in this homework before lecture. Please email your answers to 6.828-homework@pdos.csail.mit.edu, preferably in plain text.

Journaling

Submit: Give an example of how a system failure (such as a power failure) could result in an inconsistency between the various on-disk data structures in xv6's file system. Describe how the system could recover from this inconsistency both without the help of journaling (that is, using traditional fsck) and with the help of journaling.