mirror of https://github.com/ventoy/Ventoy.git
Ignore reserved space when do non-destructive installation via GUI. (#2168)
This commit is contained in:
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 rc = 1;
|
||||||
int PhyDrive;
|
int PhyDrive;
|
||||||
int PartStyle;
|
int PartStyle;
|
||||||
INT64 ReservedValue;
|
|
||||||
UINT64 RecudeBytes;
|
UINT64 RecudeBytes;
|
||||||
GUID Guid;
|
GUID Guid;
|
||||||
MBR_HEAD MBR;
|
MBR_HEAD MBR;
|
||||||
|
@ -2186,13 +2185,6 @@ int PartitionResizeForVentoy(PHY_DRIVE_INFO *pPhyDrive)
|
||||||
PROGRESS_BAR_SET_POS(PT_LOCK_FOR_CLEAN);
|
PROGRESS_BAR_SET_POS(PT_LOCK_FOR_CLEAN);
|
||||||
|
|
||||||
RecudeBytes = VENTOY_EFI_PART_SIZE;
|
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)
|
if (pPhyDrive->ResizeNoShrink == FALSE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue