CS FundamentalsModerateGATE CS
The virtual file system (VFS) layer in Unix-like kernels exists mainly to:
- A. Encrypt all files
- B. Implement RAID
- C. Replace the buffer cache
- D. Provide one interface (vnode/inode objects with operation tables) so system calls work the same over ext4, NFS, FAT and others
Correct answer: D. Provide one interface (vnode/inode objects with operation tables) so system calls work the same over ext4, NFS, FAT and others
VFS dispatches open, read, write and so on to file-system-specific implementations through function pointer tables, allowing heterogeneous file systems in one namespace.
More Operating Systems questions
- Which kind of I/O call returns immediately and later notifies the process (e.g. via a signal, callback or completion queue) when the data…
- An interrupt handler is split into a top half and a bottom half (e.g. softirq, tasklet, workqueue). Why?
- Which is a valid reason for a device driver to use polling instead of interrupts?
- What is the main purpose of the I/O MMU (IOMMU) in modern systems?
- A process holds a spinlock and is preempted on a single-CPU system; the next scheduled thread tries to take the same spinlock. What…
- Read-copy-update (RCU) is used for read-mostly kernel data. What is its key idea?