Example: Indexed Allocation (UNIX). Indireccions


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.

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

For each new file data blocks are filled in the order of the i-node, first direct, then indirections single, double and triple.


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: