- Timestamp:
- Jul 30, 2010 6:26:09 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VBoxHDD.cpp
r31185 r31258 3383 3383 } 3384 3384 } 3385 3386 /* Ensure we always get correct diff information, even if the backend 3387 * doesn't actually have a stored flag for this. It must not return 3388 * bogus information for the parent UUID if it is not a diff image. */ 3389 RTUUID parentUuid; 3390 RTUuidClear(&parentUuid); 3391 rc2 = pImage->Backend->pfnGetParentUuid(pImage->pvBackendData, &parentUuid); 3392 if (RT_SUCCESS(rc2) && !RTUuidIsNull(&parentUuid)) 3393 uImageFlags |= VD_IMAGE_FLAGS_DIFF; 3394 3385 3395 pImage->uImageFlags = uImageFlags; 3386 3396 … … 5766 5776 AssertPtrBreakStmt(pImage, rc = VERR_VD_IMAGE_NOT_FOUND); 5767 5777 5768 *puImageFlags = pImage-> Backend->pfnGetImageFlags(pImage->pvBackendData);5778 *puImageFlags = pImage->uImageFlags; 5769 5779 } while (0); 5770 5780 -
trunk/src/VBox/Main/MediumImpl.cpp
r31239 r31258 3540 3540 { 3541 3541 /** @todo This kind of opening of media is assuming that diff 3542 * media can be opened as base media. Should be documented if3542 * media can be opened as base media. Should be documented that 3543 3543 * it must work for all medium format backends. */ 3544 3544 vrc = VDOpen(hdd, … … 3618 3618 } 3619 3619 3620 /* check the type*/3620 /* get the medium variant */ 3621 3621 unsigned uImageFlags; 3622 3622 vrc = VDGetImageFlags(hdd, 0, &uImageFlags); … … 3624 3624 m->variant = (MediumVariant_T)uImageFlags; 3625 3625 3626 /* check/get the parent uuid and update corresponding state */ 3626 3627 if (uImageFlags & VD_IMAGE_FLAGS_DIFF) 3627 3628 { … … 3642 3643 ComObjPtr<Medium> pParent; 3643 3644 rc = m->pVirtualBox->findHardDisk(&id, NULL, 3644 false /* aSetError */,3645 &pParent);3645 false /* aSetError */, 3646 &pParent); 3646 3647 if (FAILED(rc)) 3647 3648 { … … 4599 4600 * 4600 4601 * Given this medium is SOURCE and the specified medium is TARGET, we will 4601 * get two varian s of the merge operation:4602 * get two variants of the merge operation: 4602 4603 * 4603 4604 * forward merge
Note:
See TracChangeset
for help on using the changeset viewer.