4 4 votes An inode-based file system uses $4$ KB blocks and $4$-byte disk addresses. The inode contains $12$ direct block pointers, $1$ single indirect pointer, and $1$ double indirect pointer.Which of the following statements is/are TRUE regarding this file system?THE MAXIMUM FILE SIZE SUPPORTED IS SLIGHTLY MORE THAN $4$ GB. THE MAXIMUM FILE SIZE SUPPORTED IS SLIGHTLY MORE THAN $1$ GB. ACCESSING A BYTE AT OFFSET $20$ MB REQUIRES AT MOST $3$ DISK BLOCK READS (INCLUDING THE INODE). A SINGLE INDIRECT BLOCK CAN ADDRESS UP TO $1024$ DATA BLOCKS. Operating System goclasses operating-system goclasses-cs-dpp goclasses-cs-dpp-day-198 goclasses-os-practice-questions multiple-selects + – GO Classes 243 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote Block size $=4 \mathrm{~KB}$Pointers per block $=\frac{4 \mathrm{~KB}}{4 \text { bytes }}=1024$ pointersDirect: $12 \times 4 \mathrm{~KB}=48 \mathrm{~KB}$Single Indirect: $1024 \times 4 \mathrm{~KB}=4 \mathrm{MB}$Double Indirect: $1024 \times 1024 \times 4 \mathrm{~KB}=1024 \times 4 \mathrm{MB}=4 \mathrm{~GB}$Total Size: $48 \mathrm{~KB}+4 \mathrm{MB}+4 \mathrm{~GB} \approx 4 \mathrm{~GB}$(A) THE MAXIMUM FILE SIZE SUPPORTED IS SLIGHTLY MORE THAN $\mathbf{4}$ GB: TRUE. The total is $4 \mathrm{~GB}+4 \mathrm{MB}+48 \mathrm{~KB}$.(B) THE MAXIMUM FILE SIZE SUPPORTED IS SLIGHTLY MORE THAN $\mathbf{1}$ GB: FALSE.(C) ACCESSING A BYTE AT OFFSET $\mathbf{20}$ MB REQUIRES AT MOST 3 DISK BLOCK READS (INCLUDING THE INODE): FALSE.$20$ MB is in the Double Indirect range (since Direct + Single Indirect only covers up to $\sim 4.04 \mathrm{MB}$ ). Path: Inode → Double Indirect Block → First level Indirect Block → Data Block. This requires $4$ reads $( 3$ disk blocks $+$ Inode$)$. (D) A SINGLE INDIRECT BLOCK CAN ADDRESS UP TO $\mathbf{1024}$ DATA BLOCKS: TRUE. GO Classes answered Feb 16 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.