Skip to content
GATEiit

GATE CSE 2019 Q52: Maximum file size with 12 direct, single- and double-indirect inode pointers

Syllabus topic: File systems

Question

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.

Try it: numerical answer: type the value

Numerical answer. No negative marking.
Show answer and explanation

Answer: 3.7 to 3.8 (or 4 to 4.1) (official GATE 2019 final answer key)

Concept used: Maximum file size = (number of direct blocks + blocks reachable through each indirect level) × block size, where one block holds block size ÷ address size pointers.

Concept notes

Loading notes…

First step: Find how many 4-byte addresses fit in a 4 kB block; the single-indirect pointer reaches that many blocks and the double-indirect one reaches its square; add the 12 direct blocks and multiply by 4 kB.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on File systems

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key