Exercise. Indexed Allocation, UNIX


Statement.

Secondary memory size is 4 x 1024 units, block size is 1 unit.

The memory is initially empty, the objects are created in the table order. Addresses @ 0 to @ 127 are reserved and can not be used. The i-node number is assigned sequentially from 0 (root).

Given the objects of the table of the file system, answer the questions:

  1. Indicates the total size in blocks (data + indirect) of the different objects and their i-node number:
    Object Size
    (In blocks)
    I-node
    / 0
    folder1
    file1.txt
    file2.txt
    link1
    folder2
    file3.txt
    Folder3
    file4.txt
    link2
  2. What is the maximum file size in this scheme?

Data

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