Commit graph

973 commits

Author SHA1 Message Date
Andrea Mazzoleni
6758ef411f Prevent integer wrap-around when checking string length in sgetbs 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
0e7cb0782f Run PowerShell commands safely via base64 encoded strings 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
5b8995ddfa Pass element count instead of byte count to WCHAR buffer bounds 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
b7d90574c8 Synchronize child_process updates using interlocked Win32 APIs 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
ea6aff0e46 Avoid 100% CPU utlization in thread_yield 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
51df6c2334 Document why thread_yield is used 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
1fa1cd7eec Allocate minimum 1 byte in malloc_nofail when size is 0 to prevent process abort 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
527560d9a8 Use sig_atomic_t 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
7d70a2acaf Clarify comment about reading uuids 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
514c5989d2 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
d1ab1674cf Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
82fdb5663d Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
a6aa723b08 Avoid some hardcoded string sizes 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
88b0755c87 Merge the CLI and Daemon portable interface 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
3acc33ef63 Fail Btrfs device listing if an unexpeced error happens 2026-07-30 16:26:39 +02:00
Andrea Mazzoleni
970c380a44 Fix file descriptor leak in os_spawn by enabling O_CLOEXEC for compiled binaries 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
2e12903940 Add support for custom smartctl info options using a [info: ...] tag 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
bcb2e862b9 Skip spinup and spindown for non-rotational devices 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
1764377f93 Refactor portable support 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
c01d72021a Allow tools to be symlinks and hardlinks 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
411272b209 Rename randomize to os_randomize 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
fd58387aea More CPU info 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
c90e803f0f Add CRC support for macOS 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
d3ce868da3 In the speed test, set the CPU affinity to the expected best core 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
344e8b4467 Run the speed test with and without displacement 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
6032b549fe Allow to specify the wrap size in allocation 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
84d274bd2e Add AArch64 NEON parity generation and recovery functions 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
03f5458e90 Further conversions from 32 to 64 bits 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
df0139493b Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
e8b3059511 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-07-30 16:26:38 +02:00
Andrea Mazzoleni
12e843b06e Use the optimal displacement depending on the number of disks 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
d5fe6f14f6 Assume the assembler supports all x86 SSE/AVX instructions 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
aaaf175a80 Add support for AVX2 GFNI 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
cec3efb058 Disable AVX512 on CPUs with narrow shuffle ports or double-pumped 256-bit datapath 2026-07-30 16:26:38 +02:00
Andrea Mazzoleni
cfb9ac0224 Extend io_init() to support arbitrary combinations of data and parity operations 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
613b88da83 Do not expose Windows threads keys 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
71157c79ee Validate GUIDs before passing them to PowerShell 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
f359b8c431 Take into account that btrfs devices can be not contiguous 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
598dc13918 Portability 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
4f53e6bb61 Secure the popen use 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
b04ae73eef Delete snapshot links in Windows 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
b2b2b6d391 Report issues in github 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
3cc18a1168 Automatically exclude the snapshot .snapraid directory and content files 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
f7524d39a0 Preliminary support for AVX512GFNI 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
db98fb0e68 Allow to configure path of external tools 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
72cbf932d9 Secure external tools execution 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
afefcffa7c Add Windows VirtualShadowCopy support for snapshots 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
8d19590829 Add Windows support for symlink of directories 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
ff3806c185 In Windows readlink now convert \ to / to match symlink behaviour 2026-07-30 16:26:37 +02:00
Andrea Mazzoleni
b0504f4f1a Always use PATH_MAX instead of MAX_PATH (limited to 260) 2026-07-30 16:26:37 +02:00