Example: Indexed Allocation (UNIX). References to i-nodes


In this example a folder tree is created with different types of file system objects: folders, files and links.

On UNIX each object is associated with a structure called the i-node, this reference is in the folder entries where the objects are.

The links refer to other objects, and are associated with the same i-node of the object to which they relate, i-nodes keep track of objects associated with them.

Reminder 1: the folders' color is green and the links are blue. The files color is defined when created.

Reminder 2: In the simulation the folder size is 1 block, while the links do not occupy disk space, they are simply entries in its folder data.

Reminder 3: The structure of an i-node is


Tree Type Size
Units
/ Folder 1
folder1 Folder 1
file1.txt File 101
file2.txt File 200
link1 Hard link
(to file1.txt)
1
folder2 Folder 1
file3.txt File 460
Folder3 Folder 1
file4.txt File 120
link2 Hard link
(to link1)
0

Block size is 1 unit.

Comments: