wire / wire-format / vfs

Linux VFS (Virtual File System)

The VFS (Virtual File System) is the abstraction layer for filesystems in Linux. Key structures: superblock (filesystem metadata), inode (file metadata), dentry (directory entry, name-to-inode mapping), file (open file description). Operations: super_operations (alloc_inode, destroy_inode, read_inode, write_inode, put_super, statfs), inode_operations (lookup, create, link, unlink, symlink, mkdir, rmdir, rename, permission, getattr, setattr), file_operations (read, write, open, release, llseek, ioctl, mmap, poll, fsync, fasync, lock, splice_read, splice_write).

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: Linux VFS (Virtual File System)

wire format

spec: Linux kernel (VFS)

The VFS (Virtual File System) is the abstraction layer for filesystems in Linux. Key structures: superblock (filesystem metadata), inode (file metadata), dentry (directory entry, name-to-inode mapping), file (open file description). Operations: super_operations (alloc_inode, destroy_inode, read_inode, write_inode, put_super, statfs), inode_operations (lookup, create, link, unlink, symlink, mkdir, rmdir, rename, permission, getattr, setattr), file_operations (read, write, open, release, llseek, ioctl, mmap, poll, fsync, fasync, lock, splice_read, splice_write).

fieldsizemeaning
superblockstruct super_blockFilesystem-level metadata: magic, block size, root inode, operations, list of inodes, etc.
inodestruct inodeFile metadata: mode, uid, gid, size, timestamps, block pointers, operations. Identified by inode number.
dentrystruct dentryDirectory entry: name, parent, inode, hash, children list. Cached in dentry cache (dcache).
filestruct fileOpen file description: file position (f_pos), flags, mode, dentry, operations, private data.
super_operationsfunction pointersalloc_inode, destroy_inode, read_inode, write_inode, drop_inode, put_super, write_super, statfs, remount_fs, etc.
inode_operationsfunction pointerslookup, create, link, unlink, symlink, mkdir, rmdir, mknod, rename, permission, getattr, setattr, etc.
file_operationsfunction pointersllseek, read, write, read_iter, write_iter, iopoll, poll, unlocked_ioctl, compat_ioctl, mmap, open, flush, release, fsync, fasync, lock, splice_read, splice_write, etc.
address_space_operationsfunction pointersreadpage, writepage, writepages, set_page_dirty, readpages, write_begin, write_end, bmap, invalidatepage, releasepage, etc.

example:

00 00 00 00

VFS (placeholder)


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/vfs or /wire-format/vfs.json