code: mafs

ref: 61ab76ca10766edc8728de5cc6e1d0972c99ebc9
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.

# to see the raw contents of block 24
dd -if test.2/disk -bs 512 -skip 24 -count 1 | xd -c

block	- description
0		- magic dir entry and data
2		- /adm/config dir entry
4		- /adm/super dir entry
6		- /adm/ dir entry
8		- /adm/users/ dir entry
10		- /adm/bkp/ dir entry
12		- /adm/users/inuse dir entry
14	- /adm/frees dir entry
16	- /adm/ctl dir entry -- virtual file, empty contents
18		- /adm/users/staging dir entry
20		- / direntry

22	- /file1 blank dentry as /file1 was deleted but / still holds onto the dentry

34	- /adm/bkp/root.0 dir entry
36	- /adm/bkp/super.0 dir entry
38	- /adm/bkp/config.0 dir entry