Partition table can be verified before mounting

This commit is contained in:
Carl Johnsen
2026-02-27 07:05:30 +01:00
parent 264e11a08a
commit 0d06473df9
@@ -457,9 +457,9 @@ namespace Duplicati.UnitTest
await TestContext.Progress.WriteLineAsync($"Restore completed successfully");
// Verify partition table matches
VerifyPartitionTableMatches(sourceDrivePath, restoreDrivePath);
sourcePartitions = _diskHelper.Mount(sourceDrivePath, _sourceMountPath, readOnly: true);
var restorePartitions = _diskHelper.Mount(restoreDrivePath, _restoreMountPath, readOnly: true);
VerifyPartitionTableMatches(sourceDrivePath, restoreDrivePath);
await TestContext.Progress.WriteLineAsync($"Partition table verified to match source");
// Verify data matches byte-for-byte