VFS & OverlayFS

Linux VFS abstraction, mount namespaces, bind mounts, OverlayFS layering for container images, and copy-on-write semantics.

Overview

Overview The Virtual File System (VFS) is a kernel abstraction layer that provides a uniform file API (open, read, write, stat) across all filesystem types — ext4, XFS, NFS, procfs, tmpfs, and more. Every file operation passes through VFS before reaching the concrete filesystem driver.

Key concepts

  • Copy-up
  • Whiteout
  • Mount namespace
  • Dentry cache

Interview questions

  • How does Docker use OverlayFS to share base image layers between containers, and what happens when a container writes to a file?

Sign up free to read the full topic

More Linux topics

Start free on Cariara · Coding problems · System design studio