Commit graph

258 commits

Author SHA1 Message Date
Andrea Mazzoleni
11a0d056de Preserve recovery state until a full clean sync completes 2026-08-14 08:56:52 +02:00
Andrea Mazzoleni
ac4485cc36 Fix per-file block index overflow beyond 32 bits 2026-08-14 00:17:58 +02:00
Andrea Mazzoleni
f0f42e9e0c Continue snapshot renames across per-disk failures 2026-08-13 22:49:27 +02:00
Andrea Mazzoleni
f1fefa7451 Log explicit warning when missing snapshots fall back to live filesystem 2026-08-13 22:49:27 +02:00
Andrea Mazzoleni
b425ff3a4f Fail sync if snapshot setup fails on a supported filesystem 2026-08-13 22:49:27 +02:00
Andrea Mazzoleni
fbd9b9ea49 Defer pending snapshot promotion until parity sync 2026-08-13 22:49:27 +02:00
Andrea Mazzoleni
8c128c1bc3 Support filesystems with invalid inode numbers on individual files 2026-08-10 11:23:15 +02:00
Andrea Mazzoleni
2e8292ac49 Update to the new RAID library 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
b0b913d3f4 Fix typo in monothread implementation 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
fcfd1eeae8 Fix leak on error in state_write 2026-08-10 11:23:14 +02:00
Andrea Mazzoleni
b2e0d7f5b7 Align data disk UUID validation and write logic with parity splits using content_uuid 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
2990d9e6e1 Optimize redundant devuuid() calls by storing content file UUIDs in a dedicated field 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
608b96c1ab Add support for specifying case-insensitive SMART attribute names in the smartignore option 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
f19d00c93e Merge the CLI and Daemon portable interface 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
0b1ea5bb4c Add support for custom smartctl info options using a [info: ...] tag 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
f114cbdf30 Refactor portable support 2026-08-10 11:23:13 +02:00
Andrea Mazzoleni
a7b4ad2640 Rename randomize to os_randomize 2026-08-10 11:23:12 +02:00
Andrea Mazzoleni
0ff9d2b6f4 Further conversions from 32 to 64 bits 2026-08-04 09:48:00 +02:00
Andrea Mazzoleni
090342ce93 Migrate block_off_t to 64-bit with updated CLI parsing, VLQ serialization, and format specifiers 2026-08-04 09:48:00 +02:00
Andrea Mazzoleni
8565fb0e0d Delete snapshot links in Windows 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
5d3164e3d7 Secure external tools execution 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
deb800cb57 Add Windows VirtualShadowCopy support for snapshots 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
a1e2cd15b0 Add ZFS support 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
e8d6dabec7 Rework snapshot interface 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
76d26d1322 Add Bcachefs support 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
f5657c9f80 Change the BLOCK_HASH_SIZE type to avoid potential overflow 2026-08-04 09:47:59 +02:00
Andrea Mazzoleni
c843812bb0 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-04 09:47:59 +02:00
Andrea Mazzoleni
8ef2c6f759 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-04 09:47:59 +02:00
Andrea Mazzoleni
23a8face52 Change commenting style 2026-08-04 09:47:58 +02:00
Andrea Mazzoleni
5fa16dad4f 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-04 09:47:58 +02:00
Andrea Mazzoleni
cd2ac8439f Add Btrfs snapshot support for atomic sync and recovery consistency 2026-08-04 09:47:58 +02:00
Andrea Mazzoleni
b51307269a Get the UUID from the imported file or directory 2026-08-04 09:47:58 +02:00
Andrea Mazzoleni
af0b3c8451 Add a new informational error level for messages 2026-08-04 09:46:55 +02:00
Andrea Mazzoleni
1093ba9bbb Abort saving content file if rehash blocks exist with undefined previous checksum 2026-07-13 11:02:33 +02:00
Andrea Mazzoleni
cc99a22929 Add protection for block position integer overflow 2026-06-03 19:07:31 +02:00
Andrea Mazzoleni
6e59f2ca7b Print the stop message also with the GUI 2026-06-03 12:33:29 +02:00
Andrea Mazzoleni
cf452a091d Log using log_error all errors that are not resulting in an early termination 2026-06-03 12:33:29 +02:00
Andrea Mazzoleni
96e20b3912 Switch esc_tag and path formatting to a contiguous thread-local circular pool to eliminate stack bloat
Some checks failed
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
ee5c7ebf13 Verify smartignore range 2026-05-21 16:08:03 +02:00
Andrea Mazzoleni
00e50bd965 Fix wrong sizeof 2026-05-20 00:27:12 +02:00
Andrea Mazzoleni
10c327a558 Fixed syncing of the directory of the content file 2026-05-20 00:27:12 +02:00
Andrea Mazzoleni
4d09bffb94 Support the root filesystem as data and parity disk 2026-05-20 00:21:10 +02:00
Andrea Mazzoleni
b428cd80cc Verify the number of splits 2026-05-20 00:17:46 +02:00
Andrea Mazzoleni
9d7dcdd479 If skip_access is enabled, don't call fsinfo on the device 2026-05-20 00:17:18 +02:00
Andrea Mazzoleni
4ba6ee874c Log the modification time of the content file in probe and other commmands 2026-04-09 17:56:50 +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
5b0bc91c49 Fix typo in message 2026-03-19 15:08:41 +01:00
Andrea Mazzoleni
c153898c9a Log devices mapping
Some checks are pending
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-16 12:43:23 +01:00
Andrea Mazzoleni
189029749e Configuration is now required also for smart and probe commands
Some checks failed
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-03-12 16:19:40 +01:00