GATE CSE 2019 Q52: Maximum file size with 12 direct, single- and double-indirect inode pointers
- Operating System
- 2 marks
- NAT
- No negative marking
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
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.
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
Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key
More Operating System PYQs
- 2026 Session 1 · Q29False statements about deadlocks
- 2026 Session 1 · Q35Minimum resource instances for deadlock freedom (5 processes, max 2)
- 2026 Session 1 · Q59Disk transfer time for random sectors on tracks 5, 12, 7
- 2026 Session 1 · Q63Number of printf calls with fork, continue and break
- 2026 Session 1 · Q64Average FCFS waiting time for alternating A and C processes
- 2026 Session 2 · Q23CPU scheduling algorithm that cannot be preemptive