# acmpesuecc/radfs architecture

> Architecture diagram of the GitHub repository acmpesuecc/radfs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/acmpesuecc/radfs
- Repository: https://github.com/acmpesuecc/radfs

## Overview

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`](https://github.com/acmpesuecc/radfs/blob/main/README.md) (README), [`docs/weekly`](https://github.com/acmpesuecc/radfs/tree/main/docs/weekly) (Weekly notes), [`docs/slides`](https://github.com/acmpesuecc/radfs/tree/main/docs/slides) (Slides), [`.github/pull_request_template.md`](https://github.com/acmpesuecc/radfs/blob/main/.github/pull_request_template.md) (PR template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime path"]
  node_applications["Applications<br/>fs clients"]
  node_vfs["Kernel VFS<br/>kernel fs"]
  node_fuse["FUSE boundary<br/>userspace bridge"]
  node_daemon["radFS daemon<br/>Go userspace"]
  node_handlers["Op handlers<br/>fuse ops"]
  node_mount["Mount lifecycle<br/>init/config"]
end

subgraph group_storage["Core storage"]
  node_state["FS state<br/>namespace model"]
  node_art{{"ART index<br/>adaptive radix tree"}}
end

subgraph group_repo["Repo workflow"]
  node_readme["README<br/>project spec<br/>[README.md]"]
  node_weekly["Weekly notes<br/>project tracking"]
  node_slides["Slides<br/>presentation"]
  node_pr_template["PR template<br/>contribution guide"]
  node_codeowners["CODEOWNERS<br/>governance"]
end

node_applications -->|"syscalls"| node_vfs
node_vfs -->|"dispatch"| node_fuse
node_fuse -->|"forward"| node_daemon
node_daemon -->|"route"| node_handlers
node_handlers -->|"mutate/resolve"| node_state
node_state -->|"index via"| node_art
node_daemon -->|"start"| node_mount
node_readme -.->|"describes"| node_daemon
node_readme -.->|"selects"| node_art
node_readme -.->|"bases on"| node_fuse
node_weekly -.->|"tracks"| node_readme
node_slides -.->|"presents"| node_readme
node_pr_template -.->|"governs"| node_codeowners

click node_readme "https://github.com/acmpesuecc/radfs/blob/main/README.md"
click node_weekly "https://github.com/acmpesuecc/radfs/tree/main/docs/weekly"
click node_slides "https://github.com/acmpesuecc/radfs/tree/main/docs/slides"
click node_pr_template "https://github.com/acmpesuecc/radfs/blob/main/.github/pull_request_template.md"
click node_codeowners "https://github.com/acmpesuecc/radfs/tree/main/CODEOWNERS"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_applications,node_vfs,node_fuse,node_daemon,node_handlers,node_mount toneBlue
class node_state,node_art toneAmber
class node_readme,node_weekly,node_slides,node_pr_template,node_codeowners toneMint
```

## Components

### Runtime path

Filesystem request flow from applications through the kernel boundary into the userspace daemon.

- **Applications**: fs clients · Shell tools and programs issuing filesystem operations.
- **Kernel VFS**: kernel fs · Linux virtual filesystem layer that routes file operations toward FUSE.
- **FUSE boundary**: userspace bridge · Kernel/userspace interface that forwards filesystem requests to the daemon.
- **radFS daemon**: Go userspace · Go process that implements the filesystem behavior outside the kernel.
- **Op handlers**: fuse ops · Request handlers for lookup, read, write, create, rename, and delete.
- **Mount lifecycle**: init/config · 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**: namespace model · Mutable filesystem namespace and metadata maintained in process memory.
- **ART index**: adaptive radix tree · 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](https://github.com/acmpesuecc/radfs/blob/main/README.md): project spec · Primary source describing the intended filesystem design and tradeoffs. · `README.md`
- [Weekly notes](https://github.com/acmpesuecc/radfs/tree/main/docs/weekly): project tracking · Per-contributor progress notes under docs/weekly. · `docs/weekly`
- [Slides](https://github.com/acmpesuecc/radfs/tree/main/docs/slides): presentation · Presentation material under docs/slides for progress reviews or demos. · `docs/slides`
- [PR template](https://github.com/acmpesuecc/radfs/blob/main/.github/pull_request_template.md): contribution guide · Pull request template used to standardize collaboration. · `.github/pull_request_template.md`
- [CODEOWNERS](https://github.com/acmpesuecc/radfs/tree/main/CODEOWNERS): governance · Repository ownership and review routing metadata. · `CODEOWNERS`

## Connections

- 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.
