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
902c19b668
Specialize block hash copies for the full hash size
2026-09-10 23:51:30 +02:00
Andrea Mazzoleni
2b784748e3
Propagate final writeback errors from advise_close
2026-09-09 21:25:32 +02:00
Andrea Mazzoleni
472c85a4fb
Centralize canonical SnapRAID block hashing semantics
2026-08-31 20:45:38 +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
8396d3aaa1
Clarify cross-generation lookup limitation and safety in import_dealloc during rehash
2026-08-26 10:23:42 +02:00
Andrea Mazzoleni
1123b3eca0
Fix deallocated import candidate handling with stat validation and fallback
2026-08-26 09:39: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
9acce63c79
Fix import fetch fallback across matching hash candidates
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
55f0644004
Handle short read and pread operations in import and search paths
2026-08-18 23:33:58 +02:00
Andrea Mazzoleni
2bf74bc66f
Index deallocated snapshot blocks in previmportset during rehash
2026-08-18 23:33:57 +02:00
Andrea Mazzoleni
bbcdb72a9f
Introduce nalloc_nofail
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
00b4cbafd0
Merge the CLI and Daemon portable interface
2026-08-18 23:33:55 +02:00
Andrea Mazzoleni
f40b2decdb
Further conversions from 32 to 64 bits
2026-08-18 23:33:54 +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
54602422dd
Change commenting style
2026-08-18 23:33:52 +02:00
Andrea Mazzoleni
65a20f48c6
Ensure to advising the remaining of the file when it's closed
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-05-21 00:41:37 +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
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
21241c5078
Preliminary advise support
2016-05-15 14:50:59 +02:00
Andrea Mazzoleni
5bf030c793
Disable some operations affected by hash collision
...
This only if we are working with a reduced hash length.
2016-04-10 19:13:08 +02:00
Andrea Mazzoleni
5b06549ee3
Make the hash size configurable
...
Only at source code level.
2016-04-07 21:39:02 +02:00
Andrea Mazzoleni
e69e8640ce
Use pread also in import and search
2016-01-09 10:25:56 +01:00
Andrea Mazzoleni
2f5c6a39a9
Fix unaligned memory access in import
...
After extent conversion, the hash is not not aligned anymore,
and we cannot cast anymore to uint32.
2016-01-09 10:06:37 +01:00
Andrea Mazzoleni
452a595067
Adjust verbs in comments
2015-10-07 22:07:20 +02:00
Andrea Mazzoleni
0407c945db
Change the interface for parity allocation
...
This will allow a more compact representation
of the parity allocation
2015-10-01 23:24:06 +02:00
Andrea Mazzoleni
41a3692430
Print more details in search/import if a file disappears
2015-05-05 22:09:46 +02:00
Andrea Mazzoleni
de0c437bd2
Put a clear separation between log and msg functions
2015-04-20 22:07:42 +02:00
Andrea Mazzoleni
e56de653da
Introduce a new messaging system
2015-02-22 14:31:03 +01:00
Andrea Mazzoleni
2ac751b6d9
Put all the stdout output also in stdlog
2015-02-03 19:35:43 +01:00
Andrea Mazzoleni
b5ce575981
Change the log and output handling
...
Now the log file contains all the errors messages,
and all the tag lines.
2015-02-02 23:39:46 +01:00
Andrea Mazzoleni
ffe7f6fa57
Adds new files support.c/h for low level support functions.
2015-01-02 18:52:04 +01:00
Andrea Mazzoleni
e625fc1292
Uses proper filtering in import/search.
2014-11-19 22:55:24 +01:00
Andrea Mazzoleni
d9908487ea
Beautifies cmdline program.
2014-11-12 20:47:07 +01:00
Andrea Mazzoleni
98deb4ba91
Fixes a recurring typo in comments.
2014-10-19 21:09:22 +02:00
Andrea Mazzoleni
e17f12f26b
Changes the import command to use a new timestamp recognition.
...
This avoid the need of prehashing all the data, that could
be very slow.
2014-10-19 21:07:17 +02:00
Andrea Mazzoleni
37e7ca2faa
Removes warning messages in Windwos about not updated metadata.
2014-10-14 23:01:01 +02:00
Andrea Mazzoleni
c513af08ff
Ensures to call lstat_ex() only on regular files.
2014-10-01 21:44:35 +02:00
Andrea Mazzoleni
876bddcf4c
Beautifies the code.
2014-09-27 00:32:39 +02:00
Andrea Mazzoleni
6700b928c2
Adds a new file_mode setting to control the file access mode.
2014-09-04 22:52:04 +02:00
Andrea Mazzoleni
44ef039a13
Different source organization.
2014-03-23 17:50:27 +01:00