VirtualBox

Ignore:
Timestamp:
Dec 16, 2008 9:46:22 AM (16 years ago)
Author:
vboxsync
Message:

Storage/VBoxHDD-new: eradicate copy/paste bug in VDCopy, the UUIDs need to go into the destination image of course.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp

    r15542 r15566  
    4646
    4747/** Buffer size used for merging images. */
    48 #define VD_MERGE_BUFFER_SIZE    (1024 * 1024)
     48#define VD_MERGE_BUFFER_SIZE    (16 * _1M)
    4949
    5050/**
     
    19711971            rc = pImageFrom->Backend->pfnGetUuid(pImageFrom->pvBackendData, &ImageUuid);
    19721972            if (RT_FAILURE(rc))
    1973                 RTUuidClear(&ImageUuid);
     1973                RTUuidCreate(&ImageUuid);
    19741974        }
    19751975        rc = pImageFrom->Backend->pfnGetModificationUuid(pImageFrom->pvBackendData, &ImageModificationUuid);
     
    20072007                              NULL, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL);
    20082008            if (!RTUuidIsNull(&ImageUuid))
    2009                  pImageFrom->Backend->pfnSetUuid(pImageFrom->pvBackendData, &ImageUuid);
     2009                 pDiskTo->pLast->Backend->pfnSetUuid(pDiskTo->pLast->pvBackendData, &ImageUuid);
    20102010        }
    20112011        if (RT_FAILURE(rc))
     
    20642064        if (RT_SUCCESS(rc))
    20652065        {
    2066             pImageFrom->Backend->pfnSetModificationUuid(pImageFrom->pvBackendData, &ImageModificationUuid);
    2067             pImageFrom->Backend->pfnGetParentUuid(pImageFrom->pvBackendData, &ParentUuid);
    2068             pImageFrom->Backend->pfnGetParentModificationUuid(pImageFrom->pvBackendData, &ParentModificationUuid);
     2066            pImageTo->Backend->pfnSetModificationUuid(pImageTo->pvBackendData, &ImageModificationUuid);
     2067            pImageTo->Backend->pfnGetParentUuid(pImageTo->pvBackendData, &ParentUuid);
     2068            pImageTo->Backend->pfnGetParentModificationUuid(pImageTo->pvBackendData, &ParentModificationUuid);
    20692069        }
    20702070    } while (0);
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