Names Live in Directories¶
Exercise: 40k_filesystem · Thu Nov 5 · Length: 5:23 · Lecture: Week 11 · A file is not its name · Explainer: Names Live in Directories
A narrated walk through the explainer, for after the Nov 3 lecture and before Thursday's session: an inode records what a file is and what it holds, never its name; names live in directories, and a path is one lookup per name. The video looks at an example inode table and one stored name, its 14 bytes and its length, then walks three paths through the example tree one lookup at a time: one that is found, one that is not there, and one that asks a file for an entry. A create follows, as the given code makes it. The video ends on what you write and what it must do. It shows no solution code: only the records and entries at each lookup, with example names and numbers, not the lecture's.
Download the video (MP4, 7 MB) · Captions (WebVTT) · All five Week 11 videos