From looking at the source: yes it does, VDI file format can store logical geometry (in addition to physical). Logical geo will be propagated to the emulated CMOS and then picked up by the BIOS.javispedro wrote:Or is it possible the logical geometry is stored on the VDI metadata?
And the resize code in VD.cpp only enlarges the number of cylinders, never the number of heads:
Code: Select all
rc = pImage->Backend->pfnGetLCHSGeometry(pImage->pBackendData, &LCHSGeometryOld);
if (RT_SUCCESS(rc) && (LCHSGeometryOld.cCylinders != 0))
LCHSGeometryOld.cCylinders = cbSize / 512 / LCHSGeometryOld.cHeads / LCHSGeometryOld.cSectors;
else if (rc == VERR_VD_GEOMETRY_NOT_SET)
rc = VINF_SUCCESS;
pLCHSGeometryNew = &LCHSGeometryOld;