Homework: Journaling

Read: Journaling the Linux ext2fs Filesystem

Hand-In Procedure

You are to turn in this homework during lecture. Please write up your answers to the exercises below and hand them in to a 6.828 staff member at the beginning of lecture.

Journaling

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.

This completes the homework.