In-Class Activity
I have snapshots of several filesystems which crashed mid-update.
We happen to know that they used an fsck-like procedure to do file creations, and an informant has told us what global order of operations they used for file updates. We also suspect that all the filesystems involved were creating a new file when they crashed.
The system is a direct-allocated filesystem using bitmap tracking and a single global directory.
Ø is a null pointer. Uncolored inodes have all their pointers set to Ø.
Update order:
Blocks are zero-indexed (careful with orange/purple block!)
Update order:
Question: did it feel easy?
Update order:
...but its other data/metadata is intact! This must have failed after the data bitmap update and before the directory update.
We can recover everything about the file except for its name.
Update order:
The inodes are marked as used in the inode bitmap, so this must have failed between inodde and data bitmap updates.
We can recover everything about the file except for its name.
Update order:
What happened here?
Two possibilities:
Conclusion: failing before inode bitmap update is the same as failing in first two steps: looks like file creation never happened.