What is the maximum file size supported by a file system with 16 direct blocks, single,
double, and triple indirection? The block size is 512 bytes. Disk block numbers can be stored
in 4 bytes.
Answer:
Number of blocks:
- Direct Blocks = 16 blocks
- Single Indirect Blocks = 512 / 4 = 128 blocks
- Double Indirect Blocks = 128 * 128 = 16384 blocks
- Triple Indirect Blocks = 128 * 128 * 128 = 2097152 blocks
Total number of blocks = direct + single + double + triple = 16 + 128 + 16384 + 2097152 = 2113680
Total number of bytes = 2113680 * 512 = 1.08220416 E 9 = 1.08 GB