Using fsck.py:
$ python ./fsck.py -n 6 -i 8 -d 8 -c
Initial state of file system:
01234567
inode bitmap 10001101
0 1 2 3 4 5 6 7
inodes [d a:0 r:3] [] [] [] [d a:3 r:2] [f a:-1 r:1] [] [f a:6 r:1]
01234567
data bitmap 10010010
0 1 2 3 4 5 6 7
data [(.,0) (..,0) (g,4) (t,7)] [] [] [(.,4) (..,0) (x,5)] [] [] [z] []
--> determine which files and directories are there
Final state of file system:
01234567
inode bitmap 10001101
0 1 2 3 4 5 6 7
inodes [d a:0 r:3] [] [] [] [d a:4 r:2] [f a:-1 r:1] [] [f a:6 r:1]
01234567
data bitmap 10010010
0 1 2 3 4 5 6 7
data [(.,0) (..,0) (g,4) (t,7)] [] [] [(.,4) (..,0) (x,5)] [] [] [z] []
--> CORRUPTION = ?