VirtualBox

Changeset 59476 in vbox


Ignore:
Timestamp:
Jan 26, 2016 1:30:53 PM (9 years ago)
Author:
vboxsync
Message:

Storage/DrvVD: Make sure the disk container is destroyed when the guest ejects it

File:
1 edited

Legend:

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

    r59455 r59476  
    372372
    373373static DECLCALLBACK(void) drvvdMediaExIoReqComplete(void *pvUser1, void *pvUser2, int rcReq);
     374static void drvvdPowerOffOrDestructOrUnmount(PPDMDRVINS pDrvIns);
    374375
    375376/**
     
    24062407    /* Media is no longer locked even if it was previously. */
    24072408    pThis->fLocked = false;
     2409    drvvdPowerOffOrDestructOrUnmount(pThis->pDrvIns);
    24082410
    24092411    /*
     
    34753477 * @param   pDrvIns    The driver instance.
    34763478 */
    3477 static void drvvdPowerOffOrDestruct(PPDMDRVINS pDrvIns)
     3479static void drvvdPowerOffOrDestructOrUnmount(PPDMDRVINS pDrvIns)
    34783480{
    34793481    PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK);
     
    35153517{
    35163518    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    3517     drvvdPowerOffOrDestruct(pDrvIns);
     3519    drvvdPowerOffOrDestructOrUnmount(pDrvIns);
    35183520}
    35193521
     
    36273629     * callback first when we reconfigure the driver chain after a snapshot.
    36283630     */
    3629     drvvdPowerOffOrDestruct(pDrvIns);
     3631    drvvdPowerOffOrDestructOrUnmount(pDrvIns);
    36303632    if (pThis->MergeLock != NIL_RTSEMRW)
    36313633    {
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