Commit Graph

266 Commits

Author SHA1 Message Date
0f31aa1562 Add CLI comparison command for AaruFormat images 2025-09-29 14:45:55 +01:00
d5e45a92fe Remove unnecessary memset for sector data in aaruf_read_sector() when sector status is not dumped 2025-09-29 10:11:00 +01:00
1c3c9ddfc5 Update sector write logic to use SectorStatusDumped for improved status tracking 2025-09-29 10:10:32 +01:00
b02cab437f Refactor CRC64 handling in write sector logic to initialize context and update CRC at appropriate stages 2025-09-29 02:59:38 +01:00
adbe4e1b2d Refactor secondary DDT table creation logic to check for cached entries 2025-09-28 21:26:26 +01:00
f7f9ce53dd Add TRACE logging for setting secondary DDT entries in cached structures 2025-09-28 21:25:55 +01:00
f992267f18 Implement handling for never-written cached secondary DDT, including writing to disk and updating index entries 2025-09-28 19:44:28 +01:00
ed665ee763 Add cachedDdtPosition to track primary DDT position for new tables 2025-09-28 19:44:15 +01:00
c2c9d9f7d4 Initialize primary DDT and calculate data block start position 2025-09-28 18:44:33 +01:00
f456bcdfc6 Rename trace log from aaruf_open to parse_options for clarity 2025-09-28 18:44:17 +01:00
f3dd65c8e2 Add null check for options in aaruf_open() to prevent potential crashes 2025-09-28 18:44:05 +01:00
201a1d7022 Update nextBlockPosition calculation for aligned block writing 2025-09-28 18:43:44 +01:00
d4040e10af Update primary table entry to use calculated ddtPosition instead of cachedDdtOffset 2025-09-28 18:43:08 +01:00
e39e803c91 Align end of file to block boundary for improved data integrity 2025-09-28 18:42:33 +01:00
f5304c3173 Change nextBlockPosition type to uint64_t for improved precision 2025-09-28 18:42:01 +01:00
99b432cab6 Add convert command to AaruFormat tool for image conversion 2025-09-28 17:23:14 +01:00
90ca1ee872 Initialize index entries array and update index management for DDT entries 2025-09-28 17:08:33 +01:00
1fd250220a Write cached DDT tables to file and update primary table entries 2025-09-28 16:36:23 +01:00
a4b76fe509 Close current data block before writing cached secondary level table 2025-09-28 16:13:56 +01:00
ce20e37007 Add DDT entry setting function and integrate it into write process 2025-09-28 15:27:30 +01:00
d8e39eb87b Add primary DDT offset and implement DDT entry setting functions 2025-09-28 15:15:05 +01:00
bed8b75491 Enhance logging and error handling across multiple modules 2025-08-14 00:38:28 +01:00
d62e3119c2 Add slog logging support and update error handling in various modules 2025-08-13 20:16:42 +01:00
64c58c0300 Add write functionality for sectors and implement block closing logic 2025-08-13 16:17:45 +01:00
c15c7fb577 Refactor verify functions to use const char* for path parameters 2025-08-13 16:17:20 +01:00
3b012797cb Implement creating AaruFormat image and writing header. 2025-08-07 15:43:35 +01:00
676a87d25b Compare sectors when comparing images. 2025-08-06 02:49:52 +01:00
9a7eeb4a75 Add compare command to tool. 2025-08-06 02:14:49 +01:00
b06078b041 Implement decoding of two level DDT2 tables. 2025-08-05 23:10:54 +01:00
229f20faff Fix reversed math calculation when decoding DDT v2. 2025-08-05 02:48:59 +01:00
8bef2c3d60 Implement decoding of single level DDT2. 2025-08-05 01:29:50 +01:00
a9ca79e5a4 Move decoding of DDT v1 entries to separate function. 2025-08-05 01:05:31 +01:00
23d656ecab Add enumeration of sector status. 2025-08-05 01:05:03 +01:00
88e03824e0 Take into account size types when reading DDT v2. 2025-08-04 19:44:56 +01:00
34e58145b2 Fix corruption of state when interpreting CD DDTs. 2025-08-04 19:44:42 +01:00
69005260f3 Change size types for DDT v2. 2025-08-04 19:44:15 +01:00
5372d946fe Implement verification of DDT v2. 2025-08-04 16:31:40 +01:00
0e7dafc510 Implement processing of DDT v2. 2025-08-04 16:31:29 +01:00
6bf22a890c Fix processing of index v3. 2025-08-04 16:31:03 +01:00
76ef338466 Fix missing include line for Linux. 2025-08-04 13:36:42 +01:00
4b537e60a9 Define DDT2 header. 2025-08-03 20:48:30 +01:00
57f5c6e7a4 Fix shift calculation in DDT2 specification. 2025-08-03 20:47:47 +01:00
88eb65d430 Clarify deduplication table size type and sector status, including encryption states 2025-08-03 18:10:54 +01:00
12e3995505 Clarify negative and overflow sectors in deduplication tables 2025-08-03 17:58:58 +01:00
45c9b2c17f Implement index v3. 2025-08-03 17:45:20 +01:00
bb18c9456b Fix index v2 verification. 2025-08-02 20:37:30 +01:00
b504c8392d Implement support for reading file format header version 2. 2025-08-02 20:23:32 +01:00
9a5a994702 Move source files to categorizing subfolders. 2025-08-02 16:52:12 +01:00
01fbaa0016 Split checksum block processing from open to a separate file. 2025-08-02 16:49:53 +01:00
e081f09a71 Split dump hardware block processing from open to a separate file. 2025-08-02 16:46:04 +01:00