Skip to content
项目

关于

Linux FUSE storage daemon with routing rules and SQLite metadata index.

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

PolicyFS

codecov license

PolicyFS is a Linux FUSE storage daemon that unifies multiple storage paths under one mountpoint with explicit read/write routing rules, an optional SQLite metadata index, and built-in maintenance jobs.

What it does

  • One mountpoint, many disks: merge multiple storage paths into a single POSIX-ish view.
  • Routing rules: decide where reads/writes go based on path patterns.
  • Spin-down friendly listings: keep HDDs asleep by serving metadata from an index (SQLite) for "indexed" paths.
  • Deferred physical operations: for indexed paths, record DELETE/RENAME events and apply them later.
  • Support-friendly debug logs: trace indexed read and deferred mutation flows without changing filesystem behavior.

Status

  • Packages for Debian/Ubuntu and Fedora/EL9 on x86-64 and ARM64.

Docs

Getting started

For the full step-by-step guide, see: https://docs.policyfs.org/getting-started/

  1. Install runtime dependencies:

    sudo apt-get update
    sudo apt-get install -y fuse3
    
  2. Install from the APT repo or download a .deb from GitHub Releases.

  3. Edit the config:

    • /etc/pfs/pfs.yaml (created from the example on first install)
  4. Start a mount:

    sudo systemctl enable --now [email protected]
    
  5. Run the indexer (optional, but recommended for indexed paths):

    sudo systemctl start [email protected]
    

Contributing

If you want to contribute, keep PRs small and behavior-focused.

The development environment uses Docker Compose so you can work on macOS/Windows while running Linux FUSE inside the container.

Start dev environment:

make dev # Start this worktree's dev container

Each Git worktree gets an isolated Compose project, cache volumes, virtual disks, and dynamically assigned localhost ports. Run make dev-ports to print the host ports for Delve and MkDocs.

Run tests:

make test-unit # Run unit tests in the dev container
make test-integration # Run integration tests in the dev container
make coverage # Generate coverage report for both unit and integration tests

Useful commands:

make dev-fresh # Start the dev container with a fresh state
make dev-shell # Open a shell in the dev container
make fmt # Format code
make lint # Lint code

make docs # Generate documentation
make docs-serve # Serve documentation

Before opening a PR:

  • Ensure make lint is clean.
  • Run the relevant tests (make test-unit at minimum; add make test-integration for filesystem behavior changes).
  • Run make coverage to generate a coverage report for both unit and integration tests.
  • If you changed behavior or configuration, update the nearest relevant docs in docs/.

License

Apache-2.0. See LICENSE.

探索相关项目

加载中…