Handled online disks during restore

This commit is contained in:
Carl Johnsen
2026-02-13 16:48:52 +01:00
parent 02a9ea590a
commit d833aca0d5
+2 -1
View File
@@ -397,7 +397,8 @@ namespace Duplicati.UnitTest
// Initialize disk (the restore will overwrite this, but we need it formatted)
DiskImageVhdHelper.InitializeDisk(_restoreDiskNumber, tableType);
DiskImageVhdHelper.CreateAndFormatPartition(_restoreDiskNumber, fsType);
var restoreDriveLetter = DiskImageVhdHelper.CreateAndFormatPartition(_restoreDiskNumber, fsType);
DiskImageVhdHelper.UnmountForWriting(_restoreVhdPath, restoreDriveLetter);
return physicalDrivePath;
}