- Timestamp:
- Aug 17, 2015 1:10:28 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VMDK.cpp
r57358 r57385 3250 3250 case VMDKETYPE_HOSTED_SPARSE: 3251 3251 rc = vmdkFileOpen(pImage, &pExtent->pFile, pExtent->pszFullname, 3252 VDOpenFlagsToFileOpenFlags(uOpenFlags | ( pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0,3252 VDOpenFlagsToFileOpenFlags(uOpenFlags | ((pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0), 3253 3253 false /* fCreate */)); 3254 3254 if (RT_FAILURE(rc)) … … 3277 3277 case VMDKETYPE_FLAT: 3278 3278 rc = vmdkFileOpen(pImage, &pExtent->pFile, pExtent->pszFullname, 3279 VDOpenFlagsToFileOpenFlags(uOpenFlags | ( pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0,3279 VDOpenFlagsToFileOpenFlags(uOpenFlags | ((pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0), 3280 3280 false /* fCreate */)); 3281 3281 if (RT_FAILURE(rc)) … … 3403 3403 /* Open flat image, the raw disk. */ 3404 3404 rc = vmdkFileOpen(pImage, &pExtent->pFile, pExtent->pszFullname, 3405 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ( pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0,3405 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ((pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0), 3406 3406 false /* fCreate */)); 3407 3407 if (RT_FAILURE(rc)) … … 3511 3511 /* Create partition table flat image. */ 3512 3512 rc = vmdkFileOpen(pImage, &pExtent->pFile, pExtent->pszFullname, 3513 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ( pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0,3513 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ((pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0), 3514 3514 true /* fCreate */)); 3515 3515 if (RT_FAILURE(rc)) … … 3546 3546 /* Open flat image, the raw partition. */ 3547 3547 rc = vmdkFileOpen(pImage, &pExtent->pFile, pExtent->pszFullname, 3548 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ( pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0,3548 VDOpenFlagsToFileOpenFlags(pImage->uOpenFlags | ((pExtent->enmAccess == VMDKACCESS_READONLY) ? VD_OPEN_FLAGS_READONLY : 0), 3549 3549 false /* fCreate */)); 3550 3550 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.