elliott-beach / project3

http://www-users.cselabs.umn.edu/classes/Fall-2017/csci5103/PROJECT/PROJECT3/project3.pdf
0 stars 0 forks source link

write fsck.cc #4

Closed elliott-beach closed 6 years ago

elliott-beach commented 6 years ago

Write fsck.cc, which checks a file system for internal consistency. It should verify that

You may need to manually induce errors in your file system to test this.

elliott-beach commented 6 years ago

I'm assuming we can load the entire file system in memory for this. Counting the number of links to each file seems to require that.

elliott-beach commented 6 years ago

@kstowe I'm slightly stumped by how to implement the last one, all blocks not mentioned in the inode are marked as free blocks. The tough part is traversing all possible block addresses.