VirtualBox

Changeset 32520 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 15, 2010 1:27:55 PM (14 years ago)
Author:
vboxsync
Message:

VBoxHDD: Missing check for a flush request

File:
1 edited

Legend:

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

    r32519 r32520  
    24692469            else
    24702470            {
    2471                 if (pIoCtx->enmTxDir == VDIOCTXTXDIR_WRITE)
     2471                if (pIoCtx->enmTxDir != VDIOCTXTXDIR_READ)
     2472                {
     2473                    AssertMsg(   pIoCtx->enmTxDir == VDIOCTXTXDIR_WRITE
     2474                              || pIoCtx->enmTxDir == VDIOCTXTXDIR_FLUSH,
     2475                              ("Invalid transfer direction\n"));
    24722476                    vdThreadFinishWrite(pDisk);
     2477                }
    24732478                else
    24742479                    vdThreadFinishRead(pDisk);
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