VirtualBox

Changeset 31497 in vbox


Ignore:
Timestamp:
Aug 9, 2010 7:07:28 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64583
Message:

VBoxHDD/Async: Update the I/O state on a successful read. Fixes guest timeouts for VDIs containing VDI_IMAGE_BLOCK_ZERO blocks (after compaction for example)

File:
1 edited

Legend:

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

    r31380 r31497  
    973973        }
    974974
    975         if (rc == VERR_VD_BLOCK_FREE)
     975        if (RT_SUCCESS(rc))
     976        {
     977            ASMAtomicSubU32(&pIoCtx->cbTransferLeft, cbThisRead);
     978        }
     979        else if (rc == VERR_VD_BLOCK_FREE)
    976980        {
    977981            /* No image in the chain contains the data for the block. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette