CS FundamentalsHardIBM · Deloitte pattern

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

  1. A. 12 KB + 1 MB + 1 GB
  2. B. 12 KB + 256 KB + 64 MB
  3. C. 268 KB
  4. D. 12 KB + 256 KB + 256 MB

Correct answer: B. 12 KB + 256 KB + 64 MB

One block holds 1024/4 = 256 pointers. Direct: 12 × 1 KB; single-indirect: 256 × 1 KB = 256 KB; double-indirect: 256 × 256 × 1 KB = 64 MB. 268 KB ignores the double-indirect pointer.

More Operating Systems questions

Exams that ask this topic