







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








Add log area to disk.
Always write changes to log first – called write-ahead logging or journaling. Then write the changes to the file system. All reads go to the file system. Crash recovery – read log and correct any inconsistencies in the file system.
Observation: Log only needed for crash recovery
Checkpoint operation – make in-memory copy of file system (file cache) consistent with disk.
Most logging file systems only log metadata (file descriptors and directories) and not file data to keep log size down.
Fast recovery: recovery time O(active operations) and not O(disk size) Better performance if changes need to be reliable
Examples:
Superblock object Represents a specific mounted file system
Inode object Represents a specific file
Dentry object Represents a specific directory entry
File object Represents an open file associated with a process