Ignore reserved space when do non-destructive installation via GUI. (#2168)

pull/2170/head
longpanda 1 year ago
parent 5067020a61
commit c9939a8cfc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -2150,7 +2150,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
int rc = 1;
int PhyDrive;
int PartStyle;
INT64 ReservedValue;
UINT64 RecudeBytes;
GUID Guid;
MBR_HEAD MBR;
@ -2186,13 +2185,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
PROGRESS_BAR_SET_POS(PT_LOCK_FOR_CLEAN);
RecudeBytes = VENTOY_EFI_PART_SIZE;
ReservedValue = GetReservedSpaceInMB();
if (ReservedValue > 0)
{
Log("Reduce add reserved space %lldMB", (LONGLONG)ReservedValue);
RecudeBytes += (UINT64)(ReservedValue * SIZE_1MB);
}
if (pPhyDrive->ResizeNoShrink == FALSE)
{

Loading…
Cancel
Save