Skip to main content

GATE CSE 2019Operating System › I/O, Disk Scheduling & File SystemsVerified

GATE CSE 2019 PYQ: The index node (inode) of a Unix -like file system has 12 12 12 direct, one single-indirect and one…

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

    Answer

    4.0

    Approach

    Determine how many block addresses fit in one disk block, then count the maximum number of data blocks reachable through the 12 direct, 1 single-indirect, and 1 double-indirect pointers. Multiply by block size and convert to GB.

    The single-indirect pointer reaches 1024 data blocks and the double-indirect pointer reaches 1024² data blocks. Including 12 direct blocks, the total is about 4.004 GB, which rounds to 4.0 GB.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.