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 ?
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.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development