CS FundamentalsHardGATE CS

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

  1. A. 65,802 KB
  2. B. 65,546 KB
  3. C. 16,650 KB
  4. D. 66,058 KB

Correct answer: A. 65,802 KB

A 1 KB block holds 256 pointers. Direct blocks give 10 KB, single indirect 256 KB and double indirect 256 × 256 = 65,536 KB: 10 + 256 + 65,536 = 65,802 KB.

More Operating Systems questions

Exams that ask this topic