mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Fix setting single level DDT v2.
This commit is contained in:
@@ -1125,8 +1125,19 @@ bool set_ddt_single_level_v2(aaruformatContext *ctx, uint64_t sector_address, co
|
||||
return false;
|
||||
}
|
||||
|
||||
*ddt_entry |= (uint64_t)sector_status << 28;
|
||||
ctx->cachedSecondaryDdtBig[sector_address] = (uint32_t)*ddt_entry;
|
||||
*ddt_entry |= (uint64_t)sector_status << 28;
|
||||
}
|
||||
}
|
||||
|
||||
if(ctx->userDataDdtHeader.sizeType == SmallDdtSizeType)
|
||||
{
|
||||
TRACE("Setting small single-level DDT entry %d to %u", sector_address, (uint16_t)*ddt_entry);
|
||||
ctx->userDataDdtMini[sector_address] = (uint16_t)*ddt_entry;
|
||||
}
|
||||
else if(ctx->userDataDdtHeader.sizeType == BigDdtSizeType)
|
||||
{
|
||||
TRACE("Setting big single-level DDT entry %d to %u", sector_address, (uint32_t)*ddt_entry);
|
||||
ctx->userDataDdtBig[sector_address] = (uint32_t)*ddt_entry;
|
||||
}
|
||||
|
||||
TRACE("Exiting set_ddt_single_level_v2() = true");
|
||||
|
||||
Reference in New Issue
Block a user