Commit graph

941 commits

Author SHA1 Message Date
Andrea Mazzoleni
9889954b7e Rename randomize to os_randomize 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
a69cd8b79c More CPU info 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
17907d5960 Add CRC support for macOS 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
9922001b2d In the speed test, set the CPU affinity to the expected best core 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
124661886c Run the speed test with and without displacement 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
2555eff8d1 Allow to specify the wrap size in allocation 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
5b1258b704 Add AArch64 NEON parity generation and recovery functions 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
a8a85b2a11 Further conversions from 32 to 64 bits 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
97565a4adb Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
24389023ad Remove the unused number of data disks from the vector allocation
The same addressing rules are applied to the parity disks because
they are used as data disks during recovery operations.
2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
05e79de5a8 Use the optimal displacement depending on the number of disks 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
72edbe4d01 Assume the assembler supports all x86 SSE/AVX instructions 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
c4f9869f98 Add support for AVX2 GFNI 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
994c208315 Disable AVX512 on CPUs with narrow shuffle ports or double-pumped 256-bit datapath 2026-06-23 11:47:51 +02:00
Andrea Mazzoleni
0b5d0d981a Extend io_init() to support arbitrary combinations of data and parity operations 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
f93f56f59f Do not expose Windows threads keys 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
88b92d8758 Validate GUIDs before passing them to PowerShell 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
b8e32c68eb Take into account that btrfs devices can be not contiguous 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
759bbc53ac Portability 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
64737da4b9 Secure the popen use 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
d45c1007e7 Delete snapshot links in Windows 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
9f62f23da0 Report issues in github 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
26499a8f4b Automatically exclude the snapshot .snapraid directory and content files 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
582899a7cc Preliminary support for AVX512GFNI 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
1551644589 Allow to configure path of external tools 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
a33e048a4b Secure external tools execution 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
084ced8699 Add Windows VirtualShadowCopy support for snapshots 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
d9a706c072 Add Windows support for symlink of directories 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
91075e1e65 In Windows readlink now convert \ to / to match symlink behaviour 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
b20dc395e9 Always use PATH_MAX instead of MAX_PATH (limited to 260) 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
32110bb0cf Sanitize shell execution 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
f7fe1ea999 Add ZFS support 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
bfc92e5c05 Rework snapshot interface 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
ec97fb95d2 Add Bcachefs support 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
ca38c50ef7 Change the BLOCK_HASH_SIZE type to avoid potential overflow 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
9f6ba96f87 Target Windows 7 instead of Windows Vista 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
e19c6847c3 Modernize configure.ac 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
c4ec1f6a09 More coverage support 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
50b2e1075e Add regression check for Btrfs
It requires root privileges as it has to create Btrfs filesystems.
2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
e719aaf44c Remove the requirement to snapshot content files
The new content file format now includes metadata for previous versions
of files. This allows the fix command to access historical file data from
snapshots as needed, ensuring recovery even if the live filesystem has
changed or the file was deleted during a sync.
2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
9d3c92e64c Track deallocated files in the content file for parity recovery
Add a new 'dealloc' list per disk to record files that were removed
or modified during a scan. This list is saved in the content file
(new format version SNAPCNT4) so that past parity contributions of
those files can be imported from previous snapshots.
2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
8638563a58 Change commenting style 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
6cd6f222a7 Sync no longer requires clearing the past hash
It no longer assumes past hashes are valid if even a single unsynced
block exists, which indicates a previous sync was interrupted.

While this makes syncing slower after an interruption, it preserves the
past hash in the content file, enabling a more reliable fix if a
disk fails following an incomplete sync.

This ensures the --import option remains functional even after an
interrupted sync.
2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
9e9b22dbf2 Add detection of AVX2GFNI 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
4587856cfc Integrate new AVX512 functions in the speed test 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
cffd1ca15c Add Btrfs snapshot support for atomic sync and recovery consistency 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
d2c1029017 New Btrfs support using IOCTLs to get UUID and low level devices 2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
c44d932641 Get the UUID from the imported file or directory 2026-06-23 11:47:50 +02:00
Christoph Hellwig
e8bd6b114c Make all RAID forwarders static and local using a new registration interface
Co-authored-by: Andrea Mazzoleni <amadvance@gmail.com>
2026-06-23 11:47:50 +02:00
Andrea Mazzoleni
f8be1ad6ba Drop the test-run option from the official binary 2026-06-23 11:47:50 +02:00