Lecture 12 assignment

In preparation for the lecture about file system, please answer the following questions. Suppose a program creates a file "foo", writes 1 byte (containing "a") to it, calls close, and the power fails right after the call to closef() on line 5854 completes. What are the possible states that the disk is in? More specifically: