VirtualBox

Changeset 35072 in vbox


Ignore:
Timestamp:
Dec 14, 2010 12:50:38 PM (14 years ago)
Author:
vboxsync
Message:

DrvVD: remove poweroff callback (not needed anymore). Fixes assertion during destruction if there is still dirty data in the block cache

File:
1 edited

Legend:

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

    r34930 r35072  
    18801880*   Driver methods                                                             *
    18811881*******************************************************************************/
    1882 
    1883 static DECLCALLBACK(void) drvvdPowerOff(PPDMDRVINS pDrvIns)
    1884 {
    1885     LogFlowFunc(("\n"));
    1886     PVBOXDISK pThis = PDMINS_2_DATA(pDrvIns, PVBOXDISK);
    1887 
    1888     /*
    1889      * We must close the disk here to ensure that
    1890      * the backend closes all files before the
    1891      * async transport driver is destructed.
    1892      */
    1893     int rc = VDCloseAll(pThis->pDisk);
    1894     AssertRC(rc);
    1895 }
    18961882
    18971883/**
     
    27642750    NULL,
    27652751    /* pfnPowerOff */
    2766     drvvdPowerOff,
     2752    NULL,
    27672753    /* pfnSoftReset */
    27682754    NULL,
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