CS FundamentalsModerateGATE CS
Match the file-system structure with what it is used for: (1) superblock, (2) inode bitmap, (3) journal, (4) directory entry. (a) maps a name to an inode number; (b) records pending metadata updates for crash recovery; (c) global parameters such as block size and counts; (d) tracks which inodes are free.
- A. 1-a, 2-d, 3-b, 4-c
- B. 1-c, 2-b, 3-d, 4-a
- C. 1-d, 2-c, 3-b, 4-a
- D. 1-c, 2-d, 3-b, 4-a
Correct answer: D. 1-c, 2-d, 3-b, 4-a
The superblock describes the whole file system, the inode bitmap tracks free inodes, the journal makes updates crash-consistent, and directory entries bind names to inodes.
More Operating Systems questions
- Which sequence of metadata updates for appending a block to a file is SAFEST to write to disk without a journal, so that a crash leaves at…
- An application calls fsync() after writing a new file and then renames it into place. Why must it also fsync the containing directory on…
- A TLB with 32 entries uses 4 KB pages. A program loops over an array of 40 pages, touching each page once per pass. With LRU replacement…
- How many page faults occur when a process sequentially reads a 1 MB file through mmap() with 4 KB pages, assuming no read-ahead and none…
- Dirty pages are written back by a background daemon every 30 s. A process writes 100 MB to a file and then the machine loses power 10 s…
- A process performs 100 random 4 KB reads on a disk with 10 ms average access time and on an SSD with 0.1 ms access time. Roughly what are…