- Timestamp:
- Oct 12, 2007 7:36:33 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 25274
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VDICore.cpp
r4442 r5277 2515 2515 if (!pImage->fReadOnly) 2516 2516 { 2517 /* we only support new images */2518 2517 if (GET_MAJOR_HEADER_VERSION(&pImage->Header) == 1) 2519 2518 { … … 2529 2528 if (pParentModificationUuid) 2530 2529 pImage->Header.u.v1.uuidParentModify = *pParentModificationUuid; 2530 2531 /* write out new header */ 2532 rc = vdiUpdateHeader(pImage); 2533 AssertMsgRC(rc, ("vdiUpdateHeader() failed, filename=\"%s\", rc=%Vrc\n", 2534 pImage->szFilename, rc)); 2535 } 2536 /* Make it possible to clone old VDIs. */ 2537 else if ( GET_MAJOR_HEADER_VERSION(&pImage->Header) == 0 2538 && !pParentUuid 2539 && !pParentModificationUuid) 2540 { 2541 if (pUuid) 2542 pImage->Header.u.v0.uuidCreate = *pUuid; 2543 2544 if (pModificationUuid) 2545 pImage->Header.u.v0.uuidModify = *pModificationUuid; 2531 2546 2532 2547 /* write out new header */
Note:
See TracChangeset
for help on using the changeset viewer.