Crash Recovery

Fixing Corruption

Must run FS check fsck utility after a crash

Idea: Ordering of Updates

OS must always update the file system components in a consistent order

Solution

Make metadata updates asynchronous

Performance vs. Consistency

Crash recoverability comes at a huge cost

Solution: Battery packed RAM

Soft Updates

Soft updates fsck

Split fsck into foreground and background parts

Journaling

Journaling vs. Soft Updates

Both are much better than FFS alone

Limitations of soft updates

Limitations of journaling