Commit graph

971 commits

Author SHA1 Message Date
Andrea Mazzoleni
65a7aa9bcb Run PowerShell commands safely via base64 encoded strings 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
204eec0029 Pass element count instead of byte count to WCHAR buffer bounds 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
ae98176236 Synchronize child_process updates using interlocked Win32 APIs 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
7afa3f75d6 Avoid 100% CPU utlization in thread_yield 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
3a54bc5cf5 Document why thread_yield is used 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
551d660913 Allocate minimum 1 byte in malloc_nofail when size is 0 to prevent process abort 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
8c101ffd01 Use sig_atomic_t 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
01bfd70e6a Clarify comment about reading uuids 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
53a12e9986 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
784fc7bf1f Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
4c74b3d7c1 Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
d3be81691b Avoid some hardcoded string sizes 2026-07-29 16:49:03 +02:00
Andrea Mazzoleni
c20b1d5762 Merge the CLI and Daemon portable interface 2026-07-29 16:49:01 +02:00
Andrea Mazzoleni
c0b7900f4c Fail Btrfs device listing if an unexpeced error happens 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
e010c8e88c Fix file descriptor leak in os_spawn by enabling O_CLOEXEC for compiled binaries 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
b9d181d9cb Add support for custom smartctl info options using a [info: ...] tag 2026-07-29 16:46:28 +02:00
Andrea Mazzoleni
7c9473027c Skip spinup and spindown for non-rotational devices 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
d11c872fb6 Refactor portable support 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
60daeb6dfa Allow tools to be symlinks and hardlinks 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
130aaddbd0 Rename randomize to os_randomize 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
ca0f3545bf More CPU info 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
e7c85a1af3 Add CRC support for macOS 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
0f4630377c In the speed test, set the CPU affinity to the expected best core 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
c2827dcfed Run the speed test with and without displacement 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
a457795e7c Allow to specify the wrap size in allocation 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
677aa0cc90 Add AArch64 NEON parity generation and recovery functions 2026-07-29 16:46:27 +02:00
Andrea Mazzoleni
3d7316e7f8 Further conversions from 32 to 64 bits 2026-07-29 16:46:26 +02:00
Andrea Mazzoleni
022f63846a Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-07-29 16:45:31 +02:00
Andrea Mazzoleni
62f791886e 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-29 16:45:31 +02:00
Andrea Mazzoleni
ce62fbb37c Use the optimal displacement depending on the number of disks 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
9f432d440c Assume the assembler supports all x86 SSE/AVX instructions 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
806f15b9eb Add support for AVX2 GFNI 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
4947a937fd Disable AVX512 on CPUs with narrow shuffle ports or double-pumped 256-bit datapath 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
6d9ba1cfa5 Extend io_init() to support arbitrary combinations of data and parity operations 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
fd8ed04c4d Do not expose Windows threads keys 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
a57606c0c7 Validate GUIDs before passing them to PowerShell 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
14c2b8387a Take into account that btrfs devices can be not contiguous 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
b97eae14b1 Portability 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
89d201a5ba Secure the popen use 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
b7378c142b Delete snapshot links in Windows 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
1d3ad071d8 Report issues in github 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
77bcb28adf Automatically exclude the snapshot .snapraid directory and content files 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
6253205bdb Preliminary support for AVX512GFNI 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
f084fcb143 Allow to configure path of external tools 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
5f319ad018 Secure external tools execution 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
86486ca2f9 Add Windows VirtualShadowCopy support for snapshots 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
52d4bd849f Add Windows support for symlink of directories 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
0e40488f45 In Windows readlink now convert \ to / to match symlink behaviour 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
93a72ac5da Always use PATH_MAX instead of MAX_PATH (limited to 260) 2026-07-29 16:45:30 +02:00
Andrea Mazzoleni
dc38c9b634 Sanitize shell execution 2026-07-29 16:45:30 +02:00