VirtualBox

Changeset 2662 in vbox for trunk/include/VBox


Ignore:
Timestamp:
May 16, 2007 12:14:50 PM (18 years ago)
Author:
vboxsync
Message:

Updared header file for raw disk access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxHDD-new.h

    r2650 r2662  
    9595#define VD_IMAGE_FLAGS_DEFAULT              (VD_IMAGE_FLAGS_NONE)
    9696/** @} */
     97
     98
     99/**
     100 * Auxiliary type for describing partitions on raw disks.
     101 */
     102typedef struct VBOXHDDRAWPART
     103{
     104    /** Device to use for this partition. Can be the disk device if the offset
     105     * field is set appropriately. If this is NULL, then this partition will
     106     * not be accessible to the guest. The size of the partition must still
     107     * be set correctly. */
     108    const char      *pszRawDevice;
     109    /** Offset where the partition data starts in this device. */
     110    uint64_t        uPartitionStartOffset;
     111    /** Size of the partition. */
     112    uint64_t        cbPartition;
     113    /** Size of the partitioning info to prepend. */
     114    uint64_t        cbPartitionData;
     115    /** Pointer to the partitioning info to prepend. */
     116    const void      *pvPartitionData;
     117} VBOXHDDRAWPART, *PVBOXHDDRAWPART;
     118
     119/**
     120 * Auxiliary data structure for creating raw disks.
     121 */
     122typedef struct VBOXHDDRAW
     123{
     124    /** Flag whether access to full disk should be given (ignoring the
     125     * partition information below). */
     126    bool            fRawDisk;
     127    /** Filename for the raw disk. Ignored for partitioned raw disks.
     128     * For Linux e.g. /dev/sda, and for Windows e.g. \\.\PhysicalDisk0. */
     129    const char      *pszRawDisk;
     130    /** Number of entries in the partitions array. */
     131    unsigned        cPartitions;
     132    /** Pointer to the partitions array. */
     133    PVBOXHDDRAWPART pPartitions;
     134} VBOXHDDRAW, *PVBOXHDDRAW;
    97135
    98136/** @name VBox HDD container image open mode flags
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