virtual-filesystem · shipping · also VFS, virtual file system, virtual filesystem switch

Virtual filesystem (VFS)

A virtual filesystem is an operating-system abstraction that presents common file operations while dispatching filesystem-specific work to different implementations.

Linux VFS uses separate dentry, inode and open-file objects. Several dentries may name one inode; the open-file object carries operations supplied by that inode's filesystem. These objects are not interchangeable with the filesystem's stored directory records. [1]

The dentry cache also participates in mount traversal and concurrent pathname lookup. REF-walk uses references and locks; RCU-walk can fall back when it cannot complete safely. A cache hit therefore says neither that file contents are durable nor that later namespace operations see the same state. [2]

Engineering interpretation: before bypassing a cache, identify the correctness duties attached to its objects, not just the cost of maintaining cached values. Evaluate cold and warm paths separately and retain operations that regress in the comparison.

VFS need not execute in kernel mode. MINIX 3 implements it as a user-mode system server communicating with filesystem servers. The abstraction and its execution boundary are separate design choices. [3] [4]

Relations

related
Dentry, ByVFS, Loris

Limitations

  • The dentry, inode and pathname-walk details described here are scoped to Linux v6.16, not an internal design required of every operating system. [1, 2]

Citations

  1. Linux v6.16: Overview of the Linux Virtual File System, introduction and object interfaces (accessed 2026-12-01)
  2. Linux v6.16: Pathname lookup, More than just a cache, REF-walk and RCU-walk (accessed 2026-12-01)
  3. MINIX 3 Developer Guide: Overview of MINIX 3 architecture, user-mode server processes. (accessed 2026-12-02)
  4. MINIX 3 Developer Guide: VFS internals, responsibilities and general architecture. (accessed 2026-12-02)
Sources & caveats
  • Linux implementation discussion is pinned to commit 038d61fd642278bab63ee8ef722c50d10ab01e8f. MINIX server placement is sourced separately. The engineering interpretation is guidance, not a measured performance result.
  • Related namespace guarantees: https://hesela.com/analyses/atomic-rename-directory-durability/#dentry-cache

JSON: /data/terms/virtual-filesystem.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Virtual filesystem (VFS). Hesela. 2026-12-02. https://hesela.dev/terms/virtual-filesystem/