How systemforge279/persistent-virtual-file-system-c works
This repository contains two versions of a command-line virtual filesystem: V1 keeps file data in memory, while V2 persists filesystem state in a virtual disk. The user workflow is to issue shell-like commands to create, open, read, write, and inspect files. V2 adds mounting/formatting, inode metadata, block-level I/O, and synchronization. The source is monolithic, so the component split reflects distinct responsibilities visible in the excerpts; unsampled call relationships are omitted.
Main entry points: CVFS_V2.c Disk Block I/O · cvfs_v1.c V1 Command Shell
Components 10
In-memory CVFS
- V1 Command Shell
V1-InMemory-CVFS/cvfs_v1.c
Persistent CVFS Interface
- V2 Command Shell
V2-Persistent-CVFS/CVFS_V2.c
Persistent Filesystem
- Inode Namespace
V2-Persistent-CVFS/CVFS_V2.c - File Operations
V2-Persistent-CVFS/CVFS_V2.c - Open File State
V2-Persistent-CVFS/CVFS_V2.c - Block Data Operations
V2-Persistent-CVFS/CVFS_V2.c - Disk Block I/O
V2-Persistent-CVFS/CVFS_V2.c - Virtual Disk
- Disk Lifecycle
V2-Persistent-CVFS/CVFS_V2.c
Other components
- User
Connections 6
- User → V1 Command Shell: enters commands
V1-InMemory-CVFS/cvfs_v1.c - User → V2 Command Shell: enters commands
V2-Persistent-CVFS/CVFS_V2.c - V2 Command Shell → Disk Lifecycle: mounts filesystem
V2-Persistent-CVFS/CVFS_V2.c - Disk Lifecycle → Disk Block I/O: formats disk
V2-Persistent-CVFS/CVFS_V2.c - Block Data Operations → Disk Block I/O: reads and writes
V2-Persistent-CVFS/CVFS_V2.c - Disk Block I/O → Virtual Disk: accesses blocks
V2-Persistent-CVFS/CVFS_V2.c