mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-27 16:01:14 +00:00
Ignore reserved space when do non-destructive installation via GUI. (#2168)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user