VirtualBox

Changeset 36316 in vbox


Ignore:
Timestamp:
Mar 18, 2011 5:27:47 PM (14 years ago)
Author:
vboxsync
Message:

Storage/DevATA+DevAHCI+ATAController: make assertion less strict, locked media and double unmount are harmless

Location:
trunk/src/VBox/Devices/Storage
Files:
3 edited

Legend:

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

    r35792 r36316  
    22902290                                             (PFNRT)s->pDrvMount->pfnUnmount, 3, s->pDrvMount,
    22912291                                             false /*=fForce*/, true /*=fEeject*/);
    2292                         AssertReleaseRC(rc);
     2292                        Assert(RT_SUCCESS(rc) || (rc == VERR_PDM_MEDIA_LOCKED) || (rc = VERR_PDM_MEDIA_NOT_MOUNTED));
    22932293                        {
    22942294                            STAM_PROFILE_START(&pCtl->StatLockWait, a);
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r36273 r36316  
    40394039                                                  (PFNRT)pAhciPort->pDrvMount->pfnUnmount, 3,
    40404040                                                  pAhciPort->pDrvMount, false/*=fForce*/, true/*=fEject*/);
    4041                             Assert(RT_SUCCESS(rc2) || (rc == VERR_PDM_MEDIA_LOCKED));
     4041                            Assert(RT_SUCCESS(rc2) || (rc2 == VERR_PDM_MEDIA_LOCKED) || (rc2 = VERR_PDM_MEDIA_NOT_MOUNTED));
    40424042                        }
    40434043                        break;
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r35767 r36316  
    29842984                                             (PFNRT)s->pDrvMount->pfnUnmount, 3,
    29852985                                             s->pDrvMount /*=fForce*/, true /*=fEject*/);
    2986                         Assert(RT_SUCCESS(rc) || (rc == VERR_PDM_MEDIA_LOCKED));
     2986                        Assert(RT_SUCCESS(rc) || (rc == VERR_PDM_MEDIA_LOCKED) || (rc = VERR_PDM_MEDIA_NOT_MOUNTED));
    29872987                        {
    29882988                            STAM_PROFILE_START(&pCtl->StatLockWait, a);
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