CS FundamentalsHardGATE CS

A Unix-style inode has 10 direct pointers and one single-, one double- and one triple-indirect pointer. Blocks are 1 KB and pointers are 4 bytes. What is the maximum file size (approximately)?

  1. A. about 64 MB
  2. B. about 16 GB
  3. C. about 4 GB
  4. D. about 1 TB

Correct answer: B. about 16 GB

A block holds 1024/4 = 256 pointers. Max blocks = 10 + 256 + 256² + 256³ = 16,843,018, times 1 KB ≈ 16.06 GB, i.e. about 16 GB (dominated by the 256³ triple-indirect term).

More Operating Systems questions

Exams that ask this topic