code: mafs

ref: 0ca333a4b367336a5ecaabb14475f50dcac7b77d
dir: /tests/test.b/notes/

View raw version
Creates a disk of 32 blocks. Unmarked blocks are filled from /dev/random.

Duplicate of test.2 but seeded with random data.

Create a file /dir1/file1 on the disk and do:
echo test >> /n/mafs_test.b/dir1/file1

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	- /dir1 directory entry
19	- /dir1/file1 directory entry
20	- /dir1/file1 contents
21	- /adm/frees contents

22	- / direntry
23	- super block
24	- config

25
26
27
28

29	- / direntry
30	- super block
31	- config