btrfs

Copy-on-write Linux fs with snapshots and subvolumes.
Implements filesystem.Filesystem. No cgo, no root.
Status
| Read | Write | Format | Label | Symlinks | On-disk format |
|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | Single-device, CRC32c (btrfs-progs ≥ 5.x) |
Supported
- Read/write files
- Directories, rename, symlinks
- MBR/GPT auto-detect
Not implemented
- Snapshots, send/receive, multi-device/RAID, quotas and reflink are not implemented
Install
go get github.com/go-filesystems/btrfs
- Source: https://github.com/go-filesystems/btrfs
- API reference: https://pkg.go.dev/github.com/go-filesystems/btrfs
Note
See the module's README for full, up-to-date details.