Add rewind tracking to aaruformatContext and initialize in create.c

This commit is contained in:
2025-10-03 00:17:16 +01:00
parent ba853e23b6
commit 9e128a0ab8
3 changed files with 16 additions and 0 deletions

View File

@@ -209,6 +209,9 @@ typedef struct aaruformatContext
UT_array *indexEntries; ///< Flattened index entries (UT_array of IndexEntry).
hash_map_t *sectorHashMap; ///< Deduplication hash map (fingerprint->entry mapping).
bool deduplicate; ///< Storage deduplication active (duplicates coalesce).
bool rewinded; ///< True if stream has been rewound after open (write path).
uint64_t last_written_block; ///< Last written block number (write path).
} aaruformatContext;
/** \struct DumpHardwareEntriesWithData