VirtualBox

Ignore:
Timestamp:
Apr 22, 2010 10:43:37 PM (15 years ago)
Author:
vboxsync
Message:

VBoxHDD: async I/O updates. Mostly complete except for bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/RawHDDCore.cpp

    r28154 r28620  
    5858    /** Pointer to the per-disk VD interface list. */
    5959    PVDINTERFACE      pVDIfsDisk;
     60    /** Pointer to the per-image VD interface list. */
     61    PVDINTERFACE      pVDIfsImage;
    6062
    6163    /** Error callback. */
     
    269271#ifdef VBOX_WITH_NEW_IO_CODE
    270272    /* Try to get I/O interface. */
    271     pImage->pInterfaceIO = VDInterfaceGet(pImage->pVDIfsDisk, VDINTERFACETYPE_IO);
     273    pImage->pInterfaceIO = VDInterfaceGet(pImage->pVDIfsImage, VDINTERFACETYPE_IO);
    272274    AssertPtr(pImage->pInterfaceIO);
    273275    pImage->pInterfaceIOCallbacks = VDGetInterfaceIO(pImage->pInterfaceIO);
     
    335337#ifdef VBOX_WITH_NEW_IO_CODE
    336338    /* Try to get async I/O interface. */
    337     pImage->pInterfaceIO = VDInterfaceGet(pImage->pVDIfsDisk, VDINTERFACETYPE_IO);
     339    pImage->pInterfaceIO = VDInterfaceGet(pImage->pVDIfsImage, VDINTERFACETYPE_IO);
    338340    AssertPtr(pImage->pInterfaceIO);
    339341    pImage->pInterfaceIOCallbacks = VDGetInterfaceIO(pImage->pInterfaceIO);
     
    511513#endif
    512514    pImage->pVDIfsDisk = pVDIfsDisk;
     515    pImage->pVDIfsImage = pVDIfsImage;
    513516
    514517    rc = rawOpenImage(pImage, uOpenFlags);
     
    580583#endif
    581584    pImage->pVDIfsDisk = pVDIfsDisk;
     585    pImage->pVDIfsImage = pVDIfsImage;
    582586
    583587    rc = rawCreateImage(pImage, cbSize, uImageFlags, pszComment,
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