open-gaming

MeshXFS uses AI to adapt XFS into a clustered file-system

Key Takeaway

MeshXFS is an open-source clustered file-system where all code modifying the original XFS driver was generated by AI.

Summary

The MeshXFS project has released a POSIX clustered file-system created by tasking Claude Opus with adapting the XFS driver. The AI-generated components enable distributed locking, concurrent access from multiple nodes, fencing, and crash recovery. The project is licensed under GPL-2.0 and aims to prove that AI can handle complex kernel-level driver development.

Technical implementation of MeshXFS

  • Uses Claude Opus as an autonomous coding agent, consulting other models like GPT and Gemini for complex logic.
  • Implements two distributed lock managers: one network-based and one using SCSI COMPARE AND WRITE on shared disks.
  • Features cache coherency across nodes and fencing via SCSI persistent reservations.
  • Includes an on-disk envelope around XFS and new userspace tools (mkfs, fsck, resize).
  • The modified XFS code grew from approximately 226k to 314k lines.
  • Employs survivor-led journal recovery for crash resilience.

Why it matters

This project serves as a proof-of-concept for using autonomous AI agents to develop complex, high-integrity kernel-level software.

Original reference: www.phoronix.com →