4753957
4753957
File-System Interface
Contents
LA/512
Q
LA/511
R
➢Block to be accessed is the Qth block in the linked chain of blocks representing the file.
➢Displacement into block = R + 1
FAT Allocation Method
Logical view
index table
Example of Indexed Allocation
Indexed Allocation – Small Files
➢Need index table
➢Advantages:
➢Random access
➢Dynamic access without external fragmentation, but have overhead of index block
➢Disadvantages:
➢Pointers overhead
➢Mapping from logical to physical in a file of maximum size of 256K bytes and block size of 512
bytes. We need only 1 block for index table
Indexed Allocation – Large Files
➢Mapping from logical to physical in a file of unbounded length (block size of 512 words)
Q1
LA / (512 x 511)
R1