Andrea Mazzoleni
143813a90e
Store initial file path inline with struct snapraid_file
2026-10-05 15:41:01 +02:00
Andrea Mazzoleni
3d7a722ab2
Avoid redundant strlen and duplicate traversals when loading content strings
2026-10-05 15:41:01 +02:00
Andrea Mazzoleni
ec71f519b0
Align critical loops to 64 bytes using __align_loops attribute
2026-10-05 14:04:12 +02:00
Andrea Mazzoleni
6b8d3e23a0
Drop support for pre-SnapRAID 11 content formats and require migration with SnapRAID 14.x
2026-09-26 17:15:09 +02:00
Andrea Mazzoleni
b023939c6b
Track current and previous hash generations for deallocated blocks
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-09-26 00:02:24 +02:00
Andrea Mazzoleni
c1bcd6a24f
Migrate Windows smartctl execution from _wpopen to os_popen and direct process spawning
2026-09-14 18:03:35 +02:00
Andrea Mazzoleni
787fc020e6
Process content info values in contiguous runs
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
902c19b668
Specialize block hash copies for the full hash size
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
03545f1685
Resolve file-to-parity mappings once per extent while writing content
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
17b24c8d21
Allocate content extents by run instead of by block
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
b14f703d2b
Avoid redundant block initialization when loading content files
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
db94550cd7
Remove physical offset sorting support and default to directory order
2026-09-07 22:15:45 +02:00
Andrea Mazzoleni
12c41ff1d1
Implement two-phase file scan with dedicated discovery struct and volatile hardlink normalization
2026-09-07 22:15:45 +02:00
Andrea Mazzoleni
b9d0dcd173
Make .unrecoverable a persistent one-way recovery quarantine
2026-08-31 20:45:38 +02:00
Andrea Mazzoleni
395291bd9a
Implement crash-safe --force-full sync with persistent BLOCK_STATE_REBUILD
2026-08-31 10:39:17 +02:00
Andrea Mazzoleni
237c9f0497
Enforce BLOCK_MAX limits on both 32-bit and 64-bit builds
2026-08-27 16:29:34 +02:00
Andrea Mazzoleni
c7b8068e36
Fix 32-bit integer truncation in block metadata allocations and file_block
2026-08-26 21:11:46 +02:00
Andrea Mazzoleni
78e87549ca
Improve directory scan filesystem boundary detection using statx() for mount and subvolume IDs
2026-08-26 09:21:24 +02:00
Andrea Mazzoleni
fd65dbd9ea
Fix undefined behavior by making TommyDS foreach callback signatures take void*
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-08-24 23:03:00 +02:00
Andrea Mazzoleni
d5d999f11d
Fix modified hardlink inode tracking during scan
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
30417d57a5
Exclude snapshot directory only when snapshot mode is enabled
2026-08-18 23:33:57 +02:00
Andrea Mazzoleni
0ca7c65049
Support filesystems with invalid inode numbers on individual files
2026-08-18 23:33:56 +02:00
Andrea Mazzoleni
4ebdfe8c8f
Defer deallocation of modified files to phase 2 to prevent copy-detection races
2026-08-18 23:33:56 +02:00
Andrea Mazzoleni
3484965b89
Align data disk UUID validation and write logic with parity splits using content_uuid
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
452adbd8d9
Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
133e527643
Add support for specifying case-insensitive SMART attribute names in the smartignore option
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
52f7c2184f
Add support for custom smartctl info options using a [info: ...] tag
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
f40b2decdb
Further conversions from 32 to 64 bits
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
bbd3c23cd2
Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers
2026-08-18 23:33:54 +02:00
Andrea Mazzoleni
99530c9946
Automatically exclude the snapshot .snapraid directory and content files
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
ec9ddb474a
Rework snapshot interface
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
16b08201a4
Add Bcachefs support
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
4a37e3fece
Change the BLOCK_HASH_SIZE type to avoid potential overflow
2026-08-18 23:33:53 +02:00
Andrea Mazzoleni
2e71602267
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-08-18 23:33:52 +02:00
Andrea Mazzoleni
275063d23c
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-08-18 23:33:52 +02:00
Andrea Mazzoleni
1227a8c45e
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-08-18 23:33:52 +02:00
Andrea Mazzoleni
2fc38017a8
Add Btrfs snapshot support for atomic sync and recovery consistency
2026-08-18 23:33:52 +02:00
Andrea Mazzoleni
96e20b3912
Switch esc_tag and path formatting to a contiguous thread-local circular pool to eliminate stack bloat
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-05-29 11:22:04 +02:00
Andrea Mazzoleni
0d0431a907
Simpler Copyright string
2026-04-09 17:56:49 +02:00
Christoph Hellwig
60269a1236
Use SPDX ( https://spdx.dev/ ) tags to identify the license used for each
...
file, and a COPYING file explaining the licensing scheme, with the actual
licenses listed in the LICENSES/ directory.
2026-04-02 16:01:37 +02:00
Andrea Mazzoleni
781dd25025
Move the FLAG_IS_RELOCATED to dedicated shared flags to avoid data races
2026-03-18 12:02:05 +01:00
Andrea Mazzoleni
c449864fc7
Introduce "relocated" state to unify and replace "copied/removed" logic
2026-03-15 02:47:36 +01:00
Andrea Mazzoleni
b8b1d38781
Speed up reading of content file disabling mutexes
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
2026-03-11 16:09:09 +01:00
Andrea Mazzoleni
60c7b6baa3
New extra config option for additional disks to monitor
2026-03-11 16:05:39 +01:00
Andrea Mazzoleni
2b1e356099
Always use the mutex when scanning disks
2026-02-28 09:18:20 +01:00
Andrea Mazzoleni
d5b5a9bcbf
More efficient info bucket management
...
Logged at every state_read() and state_write()
2026-02-09 14:39:19 +01:00
Ralf
c09bdc572e
Add new locate command with --tail option.
...
Co-authored-by: Andrea Mazzoleni <amadvance@gmail.com>
2026-02-02 14:02:16 +01:00
Andrea Mazzoleni
d3f7bf64c1
Differentiate messages in the log files if they are caused by an hardware issue
2026-02-01 20:44:36 +01:00
Andrea Mazzoleni
9f081f9c22
Log the filesystem type and label
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL Advanced / Analyze (c-cpp) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
2026-01-29 19:34:33 +01:00
Andrea Mazzoleni
e80734fc4c
Fix typos
2026-01-22 16:13:25 +01:00