Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

#kernel #linux #fr #todo #en #sorbonne #vfs #filesystem

Virtual file system


The virtual file system offers an API to interpret the files from any file system in the storage device.

The virtual file system abstraction

sys_open() -> vfs_open() -> the right open() -> readpage() -> block reading

  • Objects.
    • file descriptor. represents an instance of an open file. 1d8h4a-file-descriptors
    • inode. represents a file on the storage device.
    • directory entry. caches the resolution of a file path to its corresponding inode.
    • superblock. represents an instance of a mounted file system 1d8h4f-superblock
  • Interfaces.
    • file operations operate on file content 1d8a3-linux-file-operations 1d8h1a2b-sysfs-files
    • inode operations operate on file metadata (create, mkdir, unlink, … )
    • superblock operations operate on a partition (mount, sync, unmount, … )

File System in User spacE 1d8h4e-linux-fuse