Hasty Briefsbeta

Bilingual

Foxing aspires to be an eBPF-powered replication engine for Linux filesystems

14 hours ago
  • #ebpf
  • #rust
  • #filesystem-replication
  • Foxing is an eBPF-powered replication engine for Linux filesystems (XFS, Btrfs, F2FS, Ext4), offering near real-time mirroring with robust consistency guarantees.
  • It consists of two components: fxcp (a standalone smart copy tool that auto-adapts with CoW/reflink, io_uring, and BLAKE3 Merkle delta detection) and foxingd (an eBPF daemon for continuous, event-driven mirroring with sub-millisecond latency).
  • Key features include adaptive copy strategies (e.g., NFS compound RPC, FICLONE, sendfile, io_uring), snapshot management with FXAR v2 archives for deduplication, and safety mechanisms like loop prevention, mount monitoring, and hydration cleanup.
  • Performance benchmarks show fxcp outperforming rsync in many scenarios, with foxingd achieving 15-21ms latency for single-file replication.
  • Configuration is via TOML for foxingd, while fxcp requires no configuration and auto-detects storage stacks.
  • Safety features include ENOSPC safe stall, partial write protection, and consistency guarantees with fsync barriers.
  • Monitoring is available through Prometheus metrics, and extensive testing includes an adversarial test suite for reliability.