The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) ________ GB.
A 4 kB block holds $\frac{4096}{4}=1024$ pointers. The number of data blocks is $12+1024+1024^2=1{,}049{,}612$. The file size is $1{,}049{,}612\times4\text{ kB}\approx4.0$ GB.
More File Systems and Disk Performance questions
GATE 2015 CS (CS1) Q54– Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000…
GATE 2015 CS (CS1) Q56– Suppose the following disk request sequence (track numbers) for a disk with 100 tracks is…
GATE 2016 CS (CS1) Q58– Consider a disk queue with requests for I/O to blocks on cylinders 47, 38, 121, 191, 87,…
GATE 2014 CS (CS1) Q29– A disk has cylinders 0–200. The arm is at 100 with queued requests…
GATE 2014 CS (CS2) Q30– A FAT file system has 4-byte entries. Disk size is 100 × 10⁶ bytes and data-block size 10³…
GATE 2016 CS (CS2) Q60– A disk-block cache has the plotted miss rates. Cache read latency is 1 ms and disk read…