zsiciarz / 24daysofrust

Code examples accompanying my "24 days of Rust" article series.
https://zsiciarz.github.io/24daysofrust/
MIT License
370 stars 40 forks source link

Day 15 part 1 - wrong result for `getattr` if inode is not 1 #20

Open neil-greenwood opened 1 year ago

neil-greenwood commented 1 year ago

In the second (i.e. non-empty) implementation of getattr, the result is:

reply.error(ENOSYS);

but it should be:

reply.error(ENOENT);

We want a 'File not found' rather than a 'Function not implemented' message.