Skip to content

Commit

Permalink
Update day16.md
Browse files Browse the repository at this point in the history
Fix a typo
  • Loading branch information
neil-greenwood authored Apr 17, 2023
1 parent 7a66678 commit 2cfd1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/vol1/day16.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ drwxrwxrwt 10 root root 4096 Dec 10 00:38 ..

Starting to look good! Our JSON keys are there, but what's with these question marks? Turns out FUSE calls another method called `lookup()` and since we haven't defined it yet, a default implementation will be used. But before we write our customized `lookup`, let's refactor the code a bit.

Both `getattr` and `lookup` create `FileAttr` values based on inode number or filename (JSON key in our example). Since we intend our filesystem to be read-only, let's create all necessary atributes upon initialization. This will simplify the other methods a lot.
Both `getattr` and `lookup` create `FileAttr` values based on inode number or filename (JSON key in our example). Since we intend our filesystem to be read-only, let's create all necessary attributes upon initialization. This will simplify the other methods a lot.

```rust
use std::collections::BTreeMap;
Expand Down

0 comments on commit 2cfd1e7

Please sign in to comment.