Commit Graph

365 Commits

Author SHA1 Message Date
03c091fdee Add dirty flags so structures only get rewritten on resume if they are changed. 2025-12-12 12:22:39 +00:00
a26ba9522e Fixes subchannel block wrong size initialization. 2025-12-10 08:44:59 +00:00
45f2494923 Fix closing blocks writing more data than needed 2025-12-10 08:44:25 +00:00
c5e3878174 Fix the size of the metadata block in memory buffer. 2025-12-10 01:15:27 +00:00
12418518c2 Fixed metadata block not being read correctly. 2025-12-10 00:31:37 +00:00
0d4d01fa8f Fix metadata block header not being written to image. 2025-12-09 19:38:40 +00:00
56bb631872 Read uncompressed DDT v1 into memory. 2025-11-26 03:20:58 +00:00
176cab648b Fix bounds with negative sectors. 2025-11-23 23:53:25 +00:00
2b98fb44d0 Skip LZMA properties when verifying compressed blocks. 2025-11-23 20:55:57 +00:00
dc613fef8e Override sector status when setting DDT entry as it can be different than cached deduplicated entries. 2025-11-22 17:44:28 +00:00
8022e32415 Fix incorrect media type references in read.c 2025-11-22 17:43:51 +00:00
bb6c427378 Fix calculation of negative sectors offset in DDT tables. 2025-11-22 13:51:10 +00:00
649ac6003d Pass parameter instead of hardcoded value in set_ddt_entry_v2. 2025-11-22 13:50:52 +00:00
4557822a66 Fix open mode when resuming. 2025-10-21 16:38:01 +01:00
8d334fc7e6 Remove previous index entries before adding primary and single DDTs. 2025-10-21 16:37:35 +01:00
f53092c941 Fix wrong error codes in doxygen documentation. 2025-10-21 14:23:03 +01:00
4a7547705d Update doxygen documentation for aaruf_open. 2025-10-21 14:22:50 +01:00
fc1aed3292 Do not allow resuming for images version older than V2. 2025-10-21 14:22:14 +01:00
f7da1e27bd Add support for resuming images. 2025-10-21 14:02:47 +01:00
f0f364fd0e On opening, set index in header. 2025-10-21 13:49:06 +01:00
b4da7d9fb2 Fix initial offset for dump hardware data copying 2025-10-20 02:24:43 +01:00
94e44ef304 Do not consider rewinded the first time block 0 is written. 2025-10-20 01:13:14 +01:00
d6ea7db911 Fix offset when returning dump hardware list. 2025-10-20 00:40:42 +01:00
0326c81a91 When setting dump hardware consider that strings are already NUL-terminated. 2025-10-20 00:40:27 +01:00
542cc58eba Consider reading dump hardware blocks that strings are NUL-terminated. 2025-10-20 00:39:53 +01:00
7a4992a243 Add LZMA properties length to compressed block length calculation 2025-10-19 03:14:16 +01:00
5cfffbcb68 Add function to retrieve readable media tags 2025-10-18 17:53:38 +01:00
0bb3a3376b Add function to retrieve readable sector tags 2025-10-18 17:46:43 +01:00
b4999f8dad Enlarge writing buffer.
Fixes crash when compressing FLAC.
2025-10-18 16:45:14 +01:00
112f8ab320 Update sector tag constants for Aaru compatibility 2025-10-18 16:14:49 +01:00
ebd345ce82 Rename sector tag constants for Aaru compatibility 2025-10-18 16:08:08 +01:00
36be5c9c8a Add functions to retrieve all tape files and partitions from AaruFormat images 2025-10-13 17:02:00 +01:00
556537c79e Add functions to clear various metadata fields in AaruFormat images 2025-10-13 14:24:51 +01:00
8c80b87903 Refactor includes for Windows compatibility in helpers.c 2025-10-11 14:06:48 +01:00
e66b263183 Add function to generate cryptographically strong random bytes for the GUID on image creation. 2025-10-11 13:24:45 +01:00
dde81f6773 Add sector status parameter to read sector functions 2025-10-11 12:42:32 +01:00
58784472ec Rename some enumerations because of collisions with Windows. 2025-10-11 03:32:28 +01:00
05cbf9ad24 Refactor switch cases in write.c to improve readability by adding braces
And because not using them is apparently something introduced in C23.
2025-10-11 03:31:58 +01:00
b4df385b79 Add AARU_EXPORT and AARU_CALL macros to function implementations for consistency 2025-10-11 03:30:19 +01:00
61850a9520 Update DDT entry documentation to indicate 64-bit values 2025-10-11 01:34:22 +01:00
2e11b05547 Update application name handling to support UTF-8 in version 2 and remove ICU dependency 2025-10-11 01:26:17 +01:00
328c82223e Fix identifier check for secondary deduplication table in decode_ddt_multi_level_v2 2025-10-11 00:46:14 +01:00
692e4d4790 Refactor zeroaddress initialization and remove redundant memset call 2025-10-10 23:24:43 +01:00
c4564b3a0a Use specific block type for secondary level DDTs v2. 2025-10-10 22:18:00 +01:00
831467d46a Add additional checks for sector suffix and prefix DDT in read.c 2025-10-10 22:06:59 +01:00
2806b879a8 Refactor DDT handling to use uint64_t for sector prefix and suffix data types 2025-10-10 22:06:48 +01:00
9e3c0af774 Remove unnecessary initialization of found_user_data_ddt in ddt_v2.c 2025-10-10 22:06:27 +01:00
258d132fbf Fix context reference for ECC and EDC computations in write.c 2025-10-10 18:33:36 +01:00
ab9ab4e164 Cast sector status values to uint64_t for correct bitwise operations in write.c 2025-10-10 18:33:27 +01:00
3d97bcd6d2 Add user sectors information to image metadata in create.c 2025-10-10 18:32:28 +01:00