Skip to content

OSlings Practice 40k-41k, Problem 1: Filesystem

OSlings Practice 40k-41k, problem 1 of 2 · Length: 7:02 · Exercise: 40k_filesystem (Week 11) · Problems: 40k-41k (PDF) · Answer key: Solutions (PDF)

Two parts, worked on the set's pages 1 and 2: (a) what six calls to dircreate and dirlookup return, in order, right after fs.init(); (b) what dirlookup returns for "hell" once its length check is dropped, with "hello" in the root, and why, and what dircreate then returns. The answer key's handwriting is written onto the page as each step is worked.

Download the video (MP4, 11 MB) · Captions (WebVTT) · Both problems