VirtualBox

Changeset 2539 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 8, 2007 4:05:42 PM (18 years ago)
Author:
vboxsync
Message:

Proper VMDK fix, part 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVmdk.cpp

    r2390 r2539  
    309309        //  of the Disk DescriptorFile. So, the below values are just a
    310310        //  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);
    313313        pDisk->Geometry.cHeads = 16;
    314314        pDisk->Geometry.cSectors = 63;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette