CS FundamentalsHardGATE CS · Advanced

A file system uses 2 KB blocks and 4-byte block pointers. Each inode has 12 direct pointers plus one single-, one double- and one triple-indirect pointer. What is the maximum file size that the inode structure can address (1 GiB = 2^30 bytes)?

  1. A. about 0.50 GiB
  2. B. about 256.00 GiB
  3. C. about 256.50 GiB
  4. D. about 513.00 GiB

Correct answer: C. about 256.50 GiB

Pointers per block = 2048/4 = 512, so the blocks addressed are 12 + 512 + 512^2 + 512^3 = 134480396, times 2 KB gives about 256.50 GiB. Leaving out the triple level gives only 0.50 GiB.

More Operating Systems questions

Exams that ask this topic