I have 2 questions concerning the node array used by this file system which have i
nodes to save the files.
Each i
-node consists of
- a user ID (2 bytes)
- three timestamps (4 bytes each)
- protection bits (2 bytes)
- a reference count (2 bytes)
- a file type (2 bytes)
- size (4 bytes)
In addition, node-i
contains
- 13 direct indexes
- an index to a level 1 index table
- an index to a level 2 index table
- an index to a level 3 index table
The system also stores the first 436 bytes of each file on node-i
.
So, the questions are:
- Let's assume that a sector of the disk has 512 bytes, and that any auxiliary index table occupies an entire sector, what is the maximum size of a file in this system?
- Is there any benefit to the first 436 bytes of the file being stored on node-i?