Submit and pass all tests to enable saving to GitHub.
Implementation
Why This Matters
Write-ahead logging is exactly how ext3, ext4, and NTFS survive power failures without running a multi-hour fsck, replaying only committed transactions and rolling back the rest. Get the commit-flag check backwards and you either lose a completed write or, worse, replay a half-written transaction and corrupt the filesystem it was supposed to protect.
Hints
0 / 3 revealed
Sample validation
Sample case for Run. Submit grades this sample plus all hidden tests.
main.c
Workspace 1.0
Implement simple journaling system.
Requirements:
Create journal file with header
Implement transaction begin/commit
Write operations to journal before main storage
Simulate crash and recovery
Demonstrate rollback (uncommitted transaction)
Demonstrate replay (committed but not checkpointed)