Commit Graph

355 Commits

Author SHA1 Message Date
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
4441873bbc Refactor EDC calculation in ecc_cd.c to use memcpy for correct endianness. 2025-10-10 15:38:15 +01:00
018395f92d Fix condition check for sector suffix and prefix in read.c 2025-10-10 15:37:48 +01:00
9e39d6f23d Fix return status in process_data_block for zero-length compressed blocks 2025-10-10 15:37:30 +01:00
ffe9311a74 Fix some places where the DDT was still being used with 32-bit values. 2025-10-10 11:45:18 +01:00
17e1c0f2bd Set DDTv2 as 64-bit and remove concept of multiple sizes of DDTs. 2025-10-10 02:39:57 +01:00
791a7f8879 Add function to retrieve deep copy of ImageInfo structure from AaruFormat image 2025-10-09 15:39:22 +01:00
ef76712380 Add functions to retrieve user, negative, and overflow sectors in AaruFormat images 2025-10-09 14:59:45 +01:00
73f2df925b Reconstruct CD long sectors from DDT v2 images. 2025-10-09 12:29:23 +01:00
b884cfe8ea Rename field names for consistency across the codebase 2025-10-09 02:33:35 +01:00
5e346e6fd5 Rename XmlMediaType to MetadataMediaType for clarity and consistency 2025-10-09 02:26:09 +01:00