Midterm 2, Section 02, Problem 3: Inodes and Directories¶
Midterm 2, Section 02, problem 3 of 5 · Length: 12:19 · Exercise: 40k_filesystem (Week 11) · Exam: Section 02 (PDF) · Answer key: Solutions (PDF)
Three parts, worked on pages 6 and 7: (a) what nine dircreate and dirlookup calls return right after fs.init(), in a table; (b) a longer write, a shorter write and a read: what each returns, the file's size, the bytes read, and why the old bytes do not come back; (c) a dirlookup that compares all NAMELEN bytes of the stored name: what four calls return, and what goes wrong. The answer key's handwriting is written onto the exam page as each step is worked.
Download the video (MP4, 29 MB) · Captions (WebVTT) · All five problems