remzi-arpacidusseau / ostep-typos

50 stars 44 forks source link

A unnecessary read for uninitialized bar inode in Figure 40.4 #88

Open hanhwi opened 9 months ago

hanhwi commented 9 months ago

Figure 40.4 describes creating /foo/bar.

In the figure, we read and write bar inode, but I think the read is unnecessary because we want to initialize the inode at this step. Why do we need to read the uninitialized inode, here?

I might misunderstood that. Is there any specific reason behind reading the inode before initializing it?

Thanks for your work.

Hanhwi Jang