VirtualBox

Changeset 18164 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 9:10:58 PM (16 years ago)
Author:
vboxsync
Message:

VBoxManage/raw partitions: comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r18162 r18164  
    9393{
    9494    unsigned        uIndex;
     95    /** partition type */
    9596    unsigned        uType;
     97    /** CHS/cylinder of the first sector */
    9698    unsigned        uStartCylinder;
     99    /** CHS/head of the first sector */
    97100    unsigned        uStartHead;
     101    /** CHS/head of the first sector */
    98102    unsigned        uStartSector;
     103    /** CHS/cylinder of the last sector */
    99104    unsigned        uEndCylinder;
     105    /** CHS/head of the last sector */
    100106    unsigned        uEndHead;
     107    /** CHS/sector of the last sector */
    101108    unsigned        uEndSector;
     109    /** start sector of this partition relative to the beginning of the hard
     110     * disk or relative to the beginning of the extended partition table */
    102111    uint64_t        uStart;
     112    /** numer of sectors of the partition */
    103113    uint64_t        uSize;
     114    /** start sector of this partition _table_ */
    104115    uint64_t        uPartDataStart;
     116    /** numer of sectors of this partition _table_ */
    105117    uint64_t        cPartDataSectors;
    106118} HOSTPARTITION, *PHOSTPARTITION;
     
    635647            pCP->uPartDataStart = uStart + uOffset;
    636648            pCP->cPartDataSectors = uStartOffset;
     649            RTPrintf("cPartDataSectors = %u\n", pCP->cPartDataSectors);
    637650            p += 16;
    638651            if (p[4] == 0)
     
    668681                RTPrintf("Two partitions start at the same place. Aborting\n");
    669682                return VERR_INVALID_PARAMETER;
    670             } else if (pPart->aPartitions[j].uStart == 0)
     683            }
     684            else if (pPart->aPartitions[j].uStart == 0)
    671685            {
    672686                RTPrintf("Partition starts at sector 0. Aborting\n");
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