VirtualBox

Changeset 28531 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 20, 2010 4:22:41 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60336
Message:

Main/OVF: fix import of IDE controllers (export currently broken)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ovfreader.h

    r28165 r28531  
    256256struct HardDiskController
    257257{
    258     uint32_t            idController;           // instance ID (Item/InstanceId); this gets referenced from HardDisk
     258    uint32_t                idController;       // instance ID (Item/InstanceId); this gets referenced from VirtualDisk
     259
    259260    enum ControllerSystemType { IDE, SATA, SCSI };
    260     ControllerSystemType system;                 // one of IDE, SATA, SCSI
    261     iprt::MiniString    strControllerType;      // controller subtype (Item/ResourceSubType); e.g. "LsiLogic"; can be empty (esp. for IDE)
    262     iprt::MiniString    strAddress;             // for IDE
    263     uint32_t            ulBusNumber;            // for IDE
     261    ControllerSystemType    system;             // one of IDE, SATA, SCSI
     262
     263    iprt::MiniString        strControllerType;  // controller subtype (Item/ResourceSubType); e.g. "LsiLogic"; can be empty (esp. for IDE)
     264
     265    uint32_t                ulAddress;          // controller index; this is determined heuristically by the OVF reader and will
     266                                                // be 0 for the first controller of this type (e.g. IDE primary ctler), 1 for the
     267                                                // next (e.g. IDE secondary ctler)
    264268
    265269    HardDiskController()
    266270        : idController(0),
    267           ulBusNumber(0)
    268     {
    269     }
     271          ulAddress(0)
     272    { }
    270273};
    271274
     
    275278{
    276279    uint32_t            idController;           // SCSI (or IDE) controller this disk is connected to;
     280                                                // this must match HardDiskController.idController and
    277281                                                // points into VirtualSystem.mapControllers
    278282    uint32_t            ulAddressOnParent;      // parsed strAddressOnParent of hardware item; will be 0 or 1 for IDE
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