GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 20

Large Unix file block allocation

Operating Systems · File Systems · Full GATE CSE 2008 paper

GATE 2008, Q20 1 mark · MCQ
Report issue

File Systems

Question 20, GATE 2008: How are blocks of a very large file allocated in the Unix file system?

(A) Contiguous allocation
(B) Linked allocation
(C) Indexed allocation
(D) An extension of indexed allocation
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Unix inodes store direct data-block addresses for small files.
2. For larger files, indirect blocks contain further addresses; double and triple indirection extend this hierarchy.
3. This is multilevel indexed allocation, the extension described in D. It neither requires contiguous blocks nor follows a next-block pointer stored in each data block.

Original paper, page 4