VirtualBox

Changeset 33240 in vbox


Ignore:
Timestamp:
Oct 19, 2010 4:18:49 PM (14 years ago)
Author:
vboxsync
Message:

Main/SystemProperties: comment wording changes and making the "2T" limit easier to read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SystemPropertiesImpl.cpp

    r33238 r33240  
    246246    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    247247
    248     /** The BIOS supports currently 32 bit LBA numbers (implementing the full
     248    /*
     249     * The BIOS supports currently 32 bit LBA numbers (implementing the full
    249250     * 48 bit range is in theory trivial, but the crappy compiler makes things
    250      * more difficult). This translates to almost 2 TBytes (to be on the safe
     251     * more difficult). This translates to almost 2 TiBytes (to be on the safe
    251252     * side, the reported limit is 1 MiByte less than that, as the total number
    252253     * of sectors should fit in 32 bits, too), which should be enough for the
    253      * moment. The virtual ATA/SATA disks support complete LBA48, and SCSI
    254      * supports LBA64 (almost, more like LBA55 in practice), so the theoretical
    255      * maximum disk size is 128 PiByte/16 EiByte. The GUI works nicely with 6
    256      * orders of magnitude, but not with 11/13 orders of magnitude. */
    257     /* no need to lock, this is const */
    258     *infoVDSize = (2048LL * 1024 - 1) * _1M;
     254     * moment. Since the MBR partition tables support only 32bit sector numbers
     255     * and thus the BIOS can only boot from disks smaller than 2T this is a
     256     * rather hard limit.
     257     *
     258     * The virtual ATA/SATA disks support complete LBA48, and SCSI supports
     259     * LBA64 (almost, more like LBA55 in practice), so the theoretical maximum
     260     * disk size is 128 PiByte/16 EiByte. The GUI works nicely with 6 orders
     261     * of magnitude, but not with 11..13 orders of magnitude.
     262    */
     263    /* no need to lock, this is const */
     264    *infoVDSize = 2 * _1T - _1M;
    259265
    260266    return S_OK;
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