CS FundamentalsHardGATE CS · TCS Digital

A file system uses 4 KB blocks and 4-byte block pointers. An inode has 12 direct pointers, one single-indirect and one double-indirect pointer (no triple). What is the maximum file size?

  1. A. 4 GB
  2. B. 4 GB + 4 MB + 48 KB
  3. C. 4 GB + 4 MB
  4. D. 1 GB + 4 MB + 48 KB

Correct answer: B. 4 GB + 4 MB + 48 KB

Direct: 12 x 4 KB = 48 KB. Single indirect: 1024 x 4 KB = 4 MB. Double indirect: 1024 x 1024 x 4 KB = 4 GB. Total 4198448 KB = 4 GB + 4 MB + 48 KB.

More Operating Systems questions

Exams that ask this topic