Leanpub Header

Skip to main content

The Linux Virtual Filesystem

Architecture, Implementation, and Administration from Kernel Internals to Cloud-Native Systems

The Linux Virtual Filesystem
This book is 100% completeLast updated on 2026-10-01

The Linux Virtual Filesystem is the abstraction that unifies every filesystem in Linux behind a single interface. This book explores its architecture, kernel implementation, and modern applications, giving system administrators, developers, and kernel engineers the knowledge to understand, troubleshoot, and extend the VFS.

Minimum price

$19.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
141
Pages
About

About

About the Book

The Linux Virtual Filesystem (VFS) is one of the most elegant abstractions in operating system design: a universal interface that allows dozens of disparate storage technologies to coexist under a single coherent API. This book takes you from foundational concepts through kernel internals to advanced topics like containerization, cloud-native storage, and modern async I/O. Whether you are a system administrator troubleshooting production filesystem issues, a developer building on FUSE or overlayfs, or a kernel engineer contributing to the VFS subsystem, this book provides the deep understanding needed to work with Linux filesystems at every level. The technical baseline assumes familiarity with the Linux 6.x kernel series.

Bundle

Bundles that include this book

Author

About the Author

Steve Publications

Steve is a technology professional with over 20 years of experience in software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. He specializes in analyzing complex systems, identifying weaknesses and improving security.

Beyond his professional work, Steve collaborates with researchers and industry experts to create practical technical books covering software development, cybersecurity, cloud computing, DevOps, AI and enterprise technologies. His goal is to help IT professionals, students and enthusiasts develop practical skills through clear explanations, real-world examples and hands-on exercises.

At Steve Publications, we use AI to assist with translation, proofreading and editing but not to replace the research, technical expertise or hands-on experience behind our books. Some authors publish under pseudonyms for privacy or professional reasons.

Every book is written, reviewed and maintained by experienced professionals, supported by a private community of over 420 engineers and researchers. We prioritize technical accuracy, practical value and regularly updated content over mass-produced AI-generated text.

We welcome experienced professionals interested in writing or reviewing books, especially in specialized and emerging technology fields. If you'd like to contribute, contact us with your area of expertise.

We stand behind our work. If a book doesn't meet your expectations, Leanpub offers a 60-day money-back guarantee.

Contents

Table of Contents

Architecture, Implementation and Administration from Kernel Internals to Cloud-Native Systems

  1. About This Book
  2. Introduction: The Abstraction That Makes Linux Possible
  3. What Is a Virtual Filesystem?
  4. The Scale of the Problem
  5. Why VFS Matters to You
  6. How This Book Is Organized

Chapter 1: Historical Evolution and Design Philosophy

  1. Pre-VFS Unix Filesystem Landscape
  2. Birth of VFS in Linux 1.3.x
  3. Design Principles: Abstraction, Extensibility, Minimalism
  4. The VFS as a Kernel Subsystem
  5. Lessons from Other Operating Systems

Chapter 2: Core VFS Objects: The Building Blocks

  1. The Superblock: Filesystem-Wide State
  2. The Inode: Metadata Without a Name
  3. The Dentry: Naming and Caching
  4. The File Object: Open File Description
  5. The Mount Structure: Binding Filesystems to Directories
  6. How the Objects Fit Together

Chapter 3: Pathname Resolution and Caching Mechanisms

  1. The Lookup Algorithm: Walking a Path Component by Component
  2. The Dentry Cache (dcache): Structure and Hash Table Design
  3. Negative Dentries and Caching Nonexistence
  4. Inode Caching and the Icache
  5. Follow Symlinks, Bind Mounts and Special Cases
  6. Performance Characteristics: When Path Resolution Becomes a Bottleneck

Chapter 4: System Calls and the VFS Interface

  1. The Syscall Entry Path: From User Space to VFS Dispatch
  2. File Operations Vector (struct file_operations)
  3. Inode Operations Vector (struct inode_operations)
  4. Superblock Operations Vector (struct super_operations)
  5. Dentry Operations Vector (struct dentry_operations)
  6. Key System Calls Walked Through

Chapter 5: Security Model and Permissions

  1. Discretionary Access Control: Traditional Unix Permissions
  2. The Permission Checking Path in VFS
  3. Linux Security Modules (LSM) Hooks in VFS
  4. Capabilities and Fine-Grained Privilege Management
  5. Extended Attributes, ACLs and Security Labels
  6. SELinux, AppArmor and Smack Integration with VFS

Chapter 6: Pseudo-Filesystems I: /proc, /sys, tmpfs and devtmpfs

  1. What Makes a Filesystem “Pseudo”?
  2. /proc: The Process Information Filesystem
  3. /sys: The Sysfs Hierarchy
  4. tmpfs: Memory-Backed RAM Filesystem
  5. devtmpfs: Automatic Device Node Management

Chapter 7: Pseudo-Filesystems II: cgroupfs, debugfs, tracefs, securityfs, configfs

  1. cgroupfs: Control Groups Filesystem
  2. debugfs: Kernel Debugging Interface
  3. tracefs: Tracing Infrastructure Filesystem
  4. securityfs: LSM Configuration Interface
  5. configfs: Dynamic Object Configuration

Chapter 8: Advanced Virtual Filesystems: overlayfs and FUSE

  1. overlayfs: Union Mount Architecture
  2. overlayfs Implementation Details
  3. FUSE: User-Space Filesystem Framework
  4. FUSE Performance and Limitations
  5. overlayfs Versus btrfs Subvolumes: A Structured Comparison
  6. Real-World Case Studies

Chapter 9: Namespaces, Mounts and Containerization

  1. Mount Namespaces: Isolating the View of the Filesystem Hierarchy
  2. Private, Shared, Slave and Unbindable Mount Propagation
  3. Bind Mounts and Their Role in Container Storage
  4. The Mount Tree Data Structure
  5. Containers and VFS: Docker, Podman and Kubernetes Perspectives
  6. Container Storage Driver Comparison
  7. Overlayfs as the Default Container Storage Driver

Chapter 10: Performance, Scalability and Optimization

  1. The Page Cache: Where Most File I/O Actually Happens
  2. Read-Ahead Algorithms and Prefetching Strategies
  3. Writeback and the Dirty Page Management Subsystem
  4. Direct I/O and Bypassing VFS Caching (O_DIRECT, io_uring)
  5. Scalability Challenges: Large Directories, Namespace Storms, Lock Contention
  6. Tuning Parameters and Performance Diagnostics

Chapter 11: Troubleshooting, Debugging, Tracing and Monitoring

  1. Syscall Tracing with strace and Performance Analysis with perf
  2. Kernel Tracing: ftrace, tracefs and Built-In VFS Traces
  3. eBPF for VFS Diagnostics (kprobes, tracepoints, BCC tools)
  4. Common Failure Patterns
  5. Mount Options for Debugging
  6. Monitoring Filesystem Health and Performance in Production

Chapter 12: Cloud-Native Use Cases and Virtualization

  1. Container Storage Orchestration: CSI, Persistent Volumes and VFS
  2. Network Filesystems Through the VFS Lens
  3. Virtualization Filesystem Backends (virtiofs, 9p, VMware vmhgfs)
  4. Ephemeral Storage Patterns in Kubernetes and Serverless
  5. Cloud Provider Filesystems: EBS, GCE Persistent Disks, Azure Files
  6. Distributed Filesystem Challenges at Scale

Chapter 13: Recent Kernel Developments and Future Directions

  1. The New Mount API: fs_context, fs_parameter, open_tree, move_mount
  2. io_uring and Asynchronous File I/O Through VFS
  3. Landlock: Unprivileged Process Sandboxing via Pathnames
  4. statx and Extended File Attributes
  5. BPF Filesystem Hooks and Runtime Security
  6. Where VFS Is Heading: Trends, Open Questions and Community Directions

Conclusion: The Living Abstraction

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub