code: mafs

ref: 9cf2807db9e8268a4dfbce19561bd712e4430a39
dir: /tests/test.9/notes/

View raw version
Creates a disk of 61440 blocks and builds the directory entries used by mafs.pdf for examples.

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

20	- /dir1 directory entry
21	- /dir1/file1 directory entry
22	- /dir1/file1 contents

23	- /dir2 directory entry
24	- /dir2/file1 directory entry
25	- /dir1/file1 contents
26	- /dir2/file2 directory entry
27	- /dir1/file2 contents

57162	- /adm/frees contents

65543	- / direntry
65544	- super block
65545	- config

131069	- / direntry
131070	- super block
131071	- config