: write the note first, then the change, then replay the note after a crash. This lesson applies that same idea to a file system.
Before you start. A file system keeps each file as an inode (a numbered record of size and block locations) and a name in a directory that points at that number (The filing cabinet: how a file system is built). A save first lands in memory, so “saved” does not yet mean “safe on disk” (The drawer that says it saved). A write-ahead log is a file where you record a change before you make it, so a crash leaves the change done or not done (Write-Ahead Log). The same idea guarded a key-value store in LSM 01-02: The Memtable and the Log. Here it guards a whole file system.
Lesson 108 of 117 in From Scratch
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.