Machine-translated by Google. Questions are authored in English.
Top

Discussion

A UNIX file system has 1 KB block size and 4-byte disk addresses. What is the maximum file size if the inode contains ten direct block entries, one single indirect block entry, one double indirect block entry and one triple indirect block entry ?

  • A.30 GB
  • B.64 GB
  • C.16 GB
  • D.1 GB

Answer: C

With 1 KB blocks and 4-byte disk addresses each indirect block holds \(1024 / 4 = 256\) addresses, so the number of blocks that can be reached is

\[ 10 + 256 + 256^{2} + 256^{3} \]

The last term is 16,777,216 blocks of 1 KB, which is 16 GB, and the other terms add only about 65 MB. So the maximum file size is about 16 GB, option (C). The values 30 GB and 64 GB are too large for this inode and 1 GB is too small.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.