How acmpesuecc/radfs works
1. Repository shape
- This snapshot is mostly a project documentation and coordination repo: README, CODEOWNERS, pull request template, and weekly progress notes under docs/weekly.
- The visible tree does not include implementation source files, so the architecture below reflects the intended system design described in the README.
2. System goal
- radFS is a memory-efficient filesystem built in Go on top of FUSE.
- The central architectural tradeoff is space efficiency over raw performance.
3. Primary runtime boundary
- The key boundary is between the Linux kernel filesystem interface and a userspace filesystem daemon.
- FUSE routes filesystem calls from the kernel to the Go process, so the filesystem logic runs outside the kernel.
4. Core storage subsystem
- The main data structure is an Adaptive Radix Tree (ART).
- ART is the repository’s chosen internal representation for filesystem namespace/state because it minimizes worst-case memory usage while still supporting efficient lookup and traversal.
5. Request/data flow
- A filesystem operation such as lookup, read, write, create, rename, or delete enters through the kernel VFS/FUSE layer.
- FUSE forwards the request to the Go daemon.
- The daemon resolves or mutates filesystem state in the ART-backed storage layer.
- The result is returned back through FUSE to the kernel and then to the calling application.
6. Likely subsystem split
- Based on the technology choice, the implementation would naturally divide into:
- FUSE protocol/operation handlers
- Filesystem state management
- ART-based indexing/storage
- Mount/configuration lifecycle
- The README confirms the first two at a high level and identifies ART as the primary storage structure.
7. Memory model
- The design emphasis suggests the filesystem state is intended to be compact and likely resident in process memory, with ART used to keep overhead low.
- The materials provided do not show a separate database, object store, or disk-backed indexing layer, so the visible architecture centers on the daemon’s in-process state.
8. Technology and runtime constraints
- Go shapes the implementation boundary: concurrency, safety, and simpler userspace filesystem development.
- FUSE makes the project Linux-centric at the mount/runtime layer, since it depends on the kernel’s FUSE interface.
9. Documentation/process structure
- docs/weekly/* indicates the repo also serves as a project tracking workspace for multiple contributors.
- docs/slides suggests presentation material for progress reviews or demos, but these are outside the runtime filesystem architecture.
10. Governance and collaboration
- CODEOWNERS and the pull request template imply a controlled contribution flow, but they do not affect runtime behavior.
- The mentor/mentee structure in the README indicates this repository is also a guided development effort, not just a codebase.
11. What to draw in an architecture diagram
- Show three main runtime blocks:
- Applications / shell tools
- Kernel VFS + FUSE
- radFS Go daemon
- Inside the daemon, show ART-backed filesystem state as the core storage component.
- Keep docs, weekly notes, and project governance outside the runtime path.
12. Main architectural takeaway
- radFS is a userspace filesystem daemon whose distinguishing feature is an ART-based internal namespace/storage model optimized for low memory usage, with all file operations mediated through the FUSE kernel/userspace boundary.
Main entry points: README.md README · weekly Weekly notes · slides Slides · pull_request_template.md PR template
Components 13
Runtime path
Filesystem request flow from applications through the kernel boundary into the userspace daemon.
- Applications · Shell tools and programs issuing filesystem operations.
- Kernel VFS · Linux virtual filesystem layer that routes file operations toward FUSE.
- FUSE boundary · Kernel/userspace interface that forwards filesystem requests to the daemon.
- radFS daemon · Go process that implements the filesystem behavior outside the kernel.
- Op handlers · Request handlers for lookup, read, write, create, rename, and delete.
- Mount lifecycle · Startup, mount, and lifecycle coordination for bringing the filesystem online.
Core storage
In-process namespace and state management centered on an adaptive radix tree.
- FS state · Mutable filesystem namespace and metadata maintained in process memory.
- ART index · Compact in-memory index used to represent filesystem state and support lookup and traversal.
Repo workflow
Documentation and contribution artifacts visible in this snapshot.
- README · Primary source describing the intended filesystem design and tradeoffs.
README.md - Weekly notes · Per-contributor progress notes under docs/weekly.
docs/weekly - Slides · Presentation material under docs/slides for progress reviews or demos.
docs/slides - PR template · Pull request template used to standardize collaboration.
.github/pull_request_template.md - CODEOWNERS · Repository ownership and review routing metadata.
CODEOWNERS
Connections 13
- Applications → Kernel VFS: syscalls · Filesystem operations enter the kernel through applications.
- Kernel VFS → FUSE boundary: dispatch · Kernel VFS forwards filesystem requests to the FUSE layer.
- FUSE boundary → radFS daemon: forward · FUSE delivers requests to the radFS userspace process.
- radFS daemon → Op handlers: route · The daemon routes each operation to the appropriate filesystem handler.
- Op handlers → FS state: mutate/resolve · Handlers resolve and update filesystem namespace state.
- FS state → ART index: index via · Filesystem state is organized around an adaptive radix tree for compact lookup.
- radFS daemon → Mount lifecycle: start · Mount and lifecycle coordination brings the filesystem online.
- README → radFS daemon: describes · The README defines the intended daemon-based filesystem architecture.
- README → ART index: selects · The README identifies ART as the core storage structure.
- README → FUSE boundary: bases on · The README frames FUSE as the kernel/userspace boundary.
- Weekly notes → README: tracks · Weekly notes document progress toward the designed filesystem.
- Slides → README: presents · Slides likely present the project design and progress.
- PR template → CODEOWNERS: governs · Contribution artifacts support review and ownership flow.