VirtualBox

Changeset 12771 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 26, 2008 3:28:42 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37109
Message:

Device/Storage: VDCopy needs to be able to write to the output file.

File:
1 edited

Legend:

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

    r12639 r12771  
    20672067
    20682068            /* Open the source image in the destination container. */
     2069            /** @todo fix open flags - the flags in pImageFrom are not the right info, the info from the image format backend is relevant */
    20692070            rc = VDOpen(pDiskTo, pImageFrom->Backend->pszBackendName, pImageFrom->pszFilename, pImageFrom->uOpenFlags, pDstVDIfsImage);
    20702071            if (RT_FAILURE(rc))
     
    21372138        {
    21382139            rc = VDCreateDiff(pDiskTo, pszBackend, pszFilename, uImageFlagsFrom,
    2139                               "", NULL, uOpenFlagsFrom, NULL, NULL);
     2140                              "", NULL, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL);
    21402141        } else {
    21412142            rc = VDCreateBase(pDiskTo, pszBackend, pszFilename, enmTypeFrom,
    21422143                              cbSize, uImageFlagsFrom, "",
    21432144                              &PCHSGeometryFrom, &LCHSGeometryFrom,
    2144                               NULL, uOpenFlagsFrom, NULL, NULL);
     2145                              NULL, uOpenFlagsFrom & ~VD_OPEN_FLAGS_READONLY, NULL, NULL);
    21452146        }
    21462147        if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette