VirtualBox

Changeset 30900 in vbox


Ignore:
Timestamp:
Jul 19, 2010 8:31:55 AM (15 years ago)
Author:
vboxsync
Message:

VMDK: Activate new async I/O by default

File:
1 edited

Legend:

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

    r30863 r30900  
    39413941        if (!(uImageFlags & VD_IMAGE_FLAGS_FIXED))
    39423942        {
     3943            /* fPreAlloc should never be false because VMware can't use such images. */
    39433944            rc = vmdkCreateGrainDirectory(pExtent,
    39443945                                          RT_MAX(  pExtent->uDescriptorSector
    39453946                                                 + pExtent->cDescriptorSectors,
    39463947                                                 1),
    3947                                           true);
     3948                                          true /* fPreAlloc */);
    39483949            if (RT_FAILURE(rc))
    39493950                return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new grain directory in '%s'"), pExtent->pszFullname);
     
    64746475    PVMDKIMAGE pImage = (PVMDKIMAGE)pvBackendData;
    64756476
    6476 #if 1 /** @todo: Remove once the async support is tested throughly */
    6477     bool fAsyncIOSupported = false;
    6478 
    6479     if (pImage)
    6480     {
    6481         fAsyncIOSupported = true;
    6482         for (unsigned i = 0; i < pImage->cExtents; i++)
    6483         {
    6484             if  (    pImage->pExtents[i].enmType != VMDKETYPE_FLAT
    6485                  &&  pImage->pExtents[i].enmType != VMDKETYPE_ZERO)
    6486             {
    6487                 fAsyncIOSupported = false;
    6488                 break; /* Stop search */
    6489             }
    6490         }
    6491     }
    6492 
    6493     return fAsyncIOSupported;
    6494 #else
    64956477    /* We do not support async I/O for stream optimized VMDK images. */
    64966478    return (pImage->uImageFlags & VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED) == 0;
    6497 #endif
    64986479}
    64996480
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