VirtualBox

Changeset 85884 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Aug 25, 2020 7:59:36 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140060
Message:

VBoxInternalManager.cpp,vd.h: Use self documenting structure names in VDISKRAWPARTDESC when it comes to the two offsets. bugref:9224

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd.h

    r85221 r85884  
    130130/** @} */
    131131
    132 /** @name VBox raw disk or partition flags
     132/** @name VDISKRAW_XXX - VBox raw disk or partition flags
    133133 * @{
    134134 */
     
    144144
    145145/**
    146  * Auxiliary type for describing partitions on raw disks. The entries must be
    147  * in ascending order (as far as uStart is concerned), and must not overlap.
    148  * Note that this does not correspond 1:1 to partitions, it is describing the
    149  * general meaning of contiguous areas on the disk.
     146 * Auxiliary type for describing partitions on raw disks.
     147 *
     148 * The entries must be in ascending order (as far as uStart is concerned), and
     149 * must not overlap. Note that this does not correspond 1:1 to partitions, it is
     150 * describing the general meaning of contiguous areas on the disk.
    150151 */
    151152typedef struct VDISKRAWPARTDESC
     
    161162    const void      *pvPartitionData;
    162163    /** Offset where the data starts in this device. */
    163     uint64_t        uStartOffset;
     164    uint64_t        offStartInDevice;
    164165    /** Offset where the data starts in the disk. */
    165     uint64_t        uStart;
     166    uint64_t        offStartInVDisk;
    166167    /** Size of the data area. */
    167168    uint64_t        cbData;
    168     /** Flags for special treatment, see VDISKRAW_FLAGS_*. */
     169    /** Flags for special treatment, see VDISKRAW_XXX. */
    169170    uint32_t        uFlags;
    170171} VDISKRAWPARTDESC, *PVDISKRAWPARTDESC;
    171172
    172173/**
    173  * Auxiliary data structure for difference between GPT and MBR
    174  * disks.
     174 * Auxiliary data structure for difference between GPT and MBR disks.
    175175 */
    176176typedef enum VDISKPARTTYPE
     
    188188     * to make logging of the comment string produce sensible results. */
    189189    char            szSignature[4];
    190     /** Flags for special treatment, see VDISKRAW_FLAGS_*. */
    191     /** Flag whether access to full disk should be given (ignoring the
    192      * partition information below). */
     190    /** Flags for special treatment, see VDISKRAW_XXX. */
    193191    uint32_t        uFlags;
    194192    /** Filename for the raw disk. Ignored for partitioned raw disks.
    195193     * For Linux e.g. /dev/sda, and for Windows e.g. //./PhysicalDisk0. */
    196     const char      *pszRawDisk;
     194    char           *pszRawDisk;
     195    /** Partitioning type of the disk */
     196    VDISKPARTTYPE   enmPartitioningType;
    197197    /** Number of entries in the partition descriptor array. */
    198     unsigned        cPartDescs;
     198    uint32_t        cPartDescs;
    199199    /** Pointer to the partition descriptor array. */
    200200    PVDISKRAWPARTDESC pPartDescs;
    201     /** Partitioning type of the disk */
    202     VDISKPARTTYPE uPartitioningType;
    203201} VDISKRAW, *PVDISKRAW;
    204202
Note: See TracChangeset for help on using the changeset viewer.

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