Explain the concept of a Virtual File System (VFS) layer.
Last updated
A VFS is a kernel abstraction layer that gives applications one uniform interface (
open,read,write) over many concrete filesystems like ext4, NTFS, NFS, or/proc.Core in-memory objects:
superblock(mounted filesystem),inode(file metadata),dentry(name-to-inode link), andfile(per-process open state).Each object carries a table of function pointers, so VFS dispatches to the right driver (kernel polymorphism). New filesystems plug in without changing applications.
- https://www.ibm.com/docs/en/aix/7.2.0?topic=concepts-virtual-file-systems
- https://medium.com/@alwinaji717/understanding-the-linux-virtual-file-system-vfs-the-hidden-layer-behind-every-file-operation-1325a06770c7
- https://dev.to/yangholmes/getting-started-with-the-emscripten-file-system-57h7
- https://www.geeksforgeeks.org/operating-systems/virtual-file-system/
- https://www.geeksforgeeks.org/linux-unix/linux-file-system/