Unformatted text preview: # writei (data block) bwrite sector 3 # iupdate (inode block) $ Hint: the easiest way to get the name of the calling function is to add a string argument to bwrite, edit all the calls to bwrite to pass the name of the calling function, and just print it. You should be able to reason about what kind of block is being written just from the calling function. You need not write the following up, but try to understand why each write is happening. This will help your understanding of the file system layout and the code. This completes the homework. This assignment requires the files xv6.pdf and xv6_rev0.zip. You may download them from the Assignments page....
View Full Document
- Fall '08
- #, 3 $, cprintf, disk I/O, bwrite sector