Add Btrfs snapshot support for atomic sync and recovery consistency

This commit is contained in:
Andrea Mazzoleni 2026-04-21 15:19:25 +02:00
parent d2c1029017
commit cffd1ca15c
18 changed files with 1094 additions and 39 deletions

18
HISTORY
View file

@ -1,6 +1,24 @@
SnapRAID HISTORY
================
15.0 WIP
========
* Added support for automated filesystem snapshots to ensure data
consistency and improve recovery reliability. When the 'snapshot'
option is enabled, SnapRAID manages a 'pending' snapshot at the start
of a sync and promotes it to a read-only 'stable' state upon
successful completion (currently supported on Btrfs).
This ensures that 'scrub', 'check', and 'fix' operations can use a
frozen point-in-time reference for data disks, eliminating mismatches
caused by concurrent live filesystem changes.
The implementation includes a "time-capsule" feature that reflinks
the .content file into the snapshot area, preserving the
metadata-to-parity correlation even if files are later deleted from
the live disk. During targeted 'check' or 'fix' operations, SnapRAID
intelligently mixes live access for the disks being repaired with
snapshot access for reference disks to maintain mathematical
integrity across the array.
14.8 2026/06
============
* Avoid spinning up standby disks on Windows in some machines during