VirtualBox

Changeset 57064 in vbox for trunk/include/VBox/vd.h


Ignore:
Timestamp:
Jul 23, 2015 4:22:04 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101786
Message:

Frontends/VBoxManage+Storage/VMDK: introduce support for creating raw partition VMDK images with readonly partitions (indicated by a 'r' suffix after the partition number)

File:
1 edited

Legend:

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

    r56291 r57064  
    127127/** @} */
    128128
     129/** @name VBox raw disk or partition flags
     130 * @{
     131 */
     132/** No special treatment. */
     133#define VBOXHDDRAW_NORMAL       0
     134/** Whether this is a raw disk (where the partition information is ignored) or
     135 * not. Valid only in the raw disk descriptor. */
     136#define VBOXHDDRAW_DISK         RT_BIT(0)
     137/** Open the corresponding raw disk or partition for reading only, no matter
     138 * how the image is created or opened. */
     139#define VBOXHDDRAW_READONLY     RT_BIT(1)
     140/** @} */
     141
    129142/**
    130143 * Auxiliary type for describing partitions on raw disks. The entries must be
     
    150163    /** Size of the data area. */
    151164    uint64_t        cbData;
     165    /** Flags for special treatment, see VBOXHDDRAW_FLAGS_*. */
     166    uint32_t        uFlags;
    152167} VBOXHDDRAWPARTDESC, *PVBOXHDDRAWPARTDESC;
    153168
     
    170185     * to make logging of the comment string produce sensible results. */
    171186    char            szSignature[4];
     187    /** Flags for special treatment, see VBOXHDDRAW_FLAGS_*. */
    172188    /** Flag whether access to full disk should be given (ignoring the
    173189     * partition information below). */
    174     bool            fRawDisk;
     190    uint32_t        uFlags;
    175191    /** Filename for the raw disk. Ignored for partitioned raw disks.
    176192     * For Linux e.g. /dev/sda, and for Windows e.g. \\\\.\\PhysicalDisk0. */
     
    182198    /** Partitioning type of the disk */
    183199    VBOXHDDPARTTYPE uPartitioningType;
    184 
    185200} VBOXHDDRAW, *PVBOXHDDRAW;
    186201
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