A unix-style I-nodes has direct pointers and one single, one double and one triple indirect pointers. Disk block size is Kbyte, disk block address is bits, and -bit integers are used. What is the maximum possible file size?
View worked solution
Answer: C
To find the maximum possible file size, we calculate the maximum number of disk blocks that can be addressed by the inode structure and multiply it by the disk block size.
Step 1: Calculate the number of block pointers per disk block
- Disk block size:
- Disk block address size:
Step 2: Calculate the total number of blocks addressable by the inode
- Direct pointers: blocks
- Single indirect pointer: blocks
- Double indirect pointer: blocks
- Triple indirect pointer: blocks
Note: Since is significantly larger than the other terms, the smaller terms can be neglected for the approximation.
Step 3: Calculate the maximum file size
Step 4: Verify with the integer size constraint
The problem mentions that -bit integers are used (likely for representing file sizes or offsets). A -bit integer can address up to bytes. Since , the file size is limited by the inode structure, which is approximately bytes.
Thus, the maximum possible file size is bytes.
Free practice · Your answers on this page are not saved.
