Tutorial Week 12

Questions

These are questions from the code walk-through in assignment 3.

1. What is the difference between VOP_ routines and FSOP_ routines?

2. What vnode operations are permitted on devices?

3. Why is VOP_INCREF called in vfs_getcurdir?

4. How do items get added to the vfslist?

5. There is no buffer cache currently in sfs. However, the bitmaps and superblock are not written to disk on every modification. How is this possible?

6. What do the statements in Question 5 mean about the integrity of your file system after a crash?

7. Can you unmount a file system on which you have open files?

8. List 3 reasons why a mount might fail.

9. Why is a routine like sfs_partialio necessary? Why is this currently a performance problem? What part of this assignment will make it less of one.

10. What is the sfs_bmap routine used for?

11. What is the inode number of the root?