Changeset 2539 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- May 8, 2007 4:05:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVmdk.cpp
r2390 r2539 309 309 // of the Disk DescriptorFile. So, the below values are just a 310 310 // quick hack. 311 pDisk->Geometry.cCylinders = (le64_to_cpu(header.capacity) /312 (16 * 63)) ;311 pDisk->Geometry.cCylinders = RT_MIN((le64_to_cpu(header.capacity) / 312 (16 * 63)), 16383); 313 313 pDisk->Geometry.cHeads = 16; 314 314 pDisk->Geometry.cSectors = 63;
Note:
See TracChangeset
for help on using the changeset viewer.