Commit graph

969 commits

Author SHA1 Message Date
Andrea Mazzoleni
98caef576f Run PowerShell commands safely via base64 encoded strings 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
8b5d17b073 Pass element count instead of byte count to WCHAR buffer bounds 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
c2d7b043ee Synchronize child_process updates using interlocked Win32 APIs 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
02276ba5a6 Avoid 100% CPU utlization in thread_yield 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
cd044f6e21 Document why thread_yield is used 2026-07-19 18:23:45 +02:00
Andrea Mazzoleni
8b457a4338 Allocate minimum 1 byte in malloc_nofail when size is 0 to prevent process abort 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
7cdfbea192 Use sig_atomic_t 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
e9a746e074 Clarify comment about reading uuids 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
7db8e03c35 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
fd1c00f07f Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
6dadd62394 Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
53c844ab77 Avoid some hardcoded string sizes 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
a2813dd19f Merge the CLI and Daemon portable interface 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
37495691ce Fail Btrfs device listing if an unexpeced error happens 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
42b76bc978 Fix file descriptor leak in os_spawn by enabling O_CLOEXEC for compiled binaries 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
db6d686241 Add support for custom smartctl info options using a [info: ...] tag 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
bb99a2eb59 Skip spinup and spindown for non-rotational devices 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
d87112536e Refactor portable support 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
6597e4470c Allow tools to be symlinks and hardlinks 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
27b4a96cfa Rename randomize to os_randomize 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
2eebd3c463 More CPU info 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
98f8c78a59 Add CRC support for macOS 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
4b20aefe0f In the speed test, set the CPU affinity to the expected best core 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
0871178223 Run the speed test with and without displacement 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
938e5ef7a2 Allow to specify the wrap size in allocation 2026-07-19 18:23:44 +02:00
Andrea Mazzoleni
cebb57c81b Add AArch64 NEON parity generation and recovery functions 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
47f0ac21b2 Further conversions from 32 to 64 bits 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
65c0f94c44 Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
9e19222090 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-19 18:23:43 +02:00
Andrea Mazzoleni
986075e53a Use the optimal displacement depending on the number of disks 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
7ac192deb9 Assume the assembler supports all x86 SSE/AVX instructions 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
ea207fdd8c Add support for AVX2 GFNI 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
3172e42650 Disable AVX512 on CPUs with narrow shuffle ports or double-pumped 256-bit datapath 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
bc7c102989 Extend io_init() to support arbitrary combinations of data and parity operations 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
ea744a9110 Do not expose Windows threads keys 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
7e898e1fd8 Validate GUIDs before passing them to PowerShell 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
d3729730a1 Take into account that btrfs devices can be not contiguous 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
247f5d542a Portability 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
e4dd5e678a Secure the popen use 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
ecb4d8168c Delete snapshot links in Windows 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
0f10d6431e Report issues in github 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
ea470341aa Automatically exclude the snapshot .snapraid directory and content files 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
37ff42a1c2 Preliminary support for AVX512GFNI 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
5fa99742b5 Allow to configure path of external tools 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
d9b5c18b62 Secure external tools execution 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
b2a947c5ab Add Windows VirtualShadowCopy support for snapshots 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
b9ec9caeb6 Add Windows support for symlink of directories 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
5e24b91eda In Windows readlink now convert \ to / to match symlink behaviour 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
c466ba7add Always use PATH_MAX instead of MAX_PATH (limited to 260) 2026-07-19 18:23:43 +02:00
Andrea Mazzoleni
6743b0067e Sanitize shell execution 2026-07-19 18:23:43 +02:00