CSE 451
Operating Systems
Lecture 23 – Transactional File Systems
Slides by: Tom Anderson
Baris Kasikci
Recap
FFS: Create a File
Normal operation:
Recovery:
Time proportional to size of disk
FFS: Move a File
Normal operation:
Recovery:
Application File Save
Application Save File (eg, Microsoft Word)
Normal operation:
Recovery:
Careful Ordering
Approach #3: Write Ahead Logging
Write Ahead (Redo) Logging
transactions
transactions
durable (including checksum of changes)
structures
Before Transaction Start
After Updates Are Logged
After Commit Logged
After Copy Back
After Garbage Collection
Write Ahead (Redo) Logging
transactions
transactions
If crash during recovery, restart recovery process
durable
structures
Questions
Performance
Redo Log Implementation
xk Implementation Note
Caveat
File System Write Ahead Logging
Question