Changeset 30900 in vbox
- Timestamp:
- Jul 19, 2010 8:31:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp
r30863 r30900 3941 3941 if (!(uImageFlags & VD_IMAGE_FLAGS_FIXED)) 3942 3942 { 3943 /* fPreAlloc should never be false because VMware can't use such images. */ 3943 3944 rc = vmdkCreateGrainDirectory(pExtent, 3944 3945 RT_MAX( pExtent->uDescriptorSector 3945 3946 + pExtent->cDescriptorSectors, 3946 3947 1), 3947 true );3948 true /* fPreAlloc */); 3948 3949 if (RT_FAILURE(rc)) 3949 3950 return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new grain directory in '%s'"), pExtent->pszFullname); … … 6474 6475 PVMDKIMAGE pImage = (PVMDKIMAGE)pvBackendData; 6475 6476 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_FLAT6485 && pImage->pExtents[i].enmType != VMDKETYPE_ZERO)6486 {6487 fAsyncIOSupported = false;6488 break; /* Stop search */6489 }6490 }6491 }6492 6493 return fAsyncIOSupported;6494 #else6495 6477 /* We do not support async I/O for stream optimized VMDK images. */ 6496 6478 return (pImage->uImageFlags & VD_VMDK_IMAGE_FLAGS_STREAM_OPTIMIZED) == 0; 6497 #endif6498 6479 } 6499 6480
Note:
See TracChangeset
for help on using the changeset viewer.