code: mafs

ref: e82f565015fd0b75085d8d2a4f1aaca53e875f64
dir: /tests/test.2/notes/

View raw version
Creates a disk of 40 blocks. Unmarked blocks are blank.

Write to a /file1 and update the file using different offsets. Check that the contents match after each addition.

block	- description
0		- magic
1		- config
2		- super block
3		- / direntry
4		- /adm/ dir entry
5		- /adm/config dir entry
6		- /adm/super dir entry
7		- /adm/users dir entry
8		- /adm/users contents
9		- /adm/bkp/ dir entry
10	- /adm/bkp/config.0 dir entry
11	- /adm/bkp/super.0 dir entry
12	- /adm/bkp/root.0 dir entry
13	- /adm/bkp/config.1 dir entry
14	- /adm/bkp/super.1 dir entry
15	- /adm/bkp/root.1 dir entry
16	- /adm/ctl dir entry -- virtual file, empty contents
17	- /adm/frees dir entry

18	- /file1 blank dentry as /file1 was deleted but / still holds onto the dentry
19	- /adm/frees contents
20
21

22
23
24
25

26	- / direntry
27	- super block
28	- config

29
30
31
32

33
34
35
36

37	- / direntry
38	- super block
39	- config