VirtualBox

Ignore:
Timestamp:
Feb 21, 2008 12:37:40 PM (17 years ago)
Author:
vboxsync
Message:

Fix open flag in raw partition vmdk creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r6987 r7070  
    21672167            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new extent list in '%s'"), pszFilename);
    21682168        pExtent = &pImage->pExtents[0];
     2169        /* Create raw disk descriptor file. */
    21692170        rc = RTFileOpen(&pImage->File, pszFilename,
    21702171                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
     
    22382239            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new extent list in '%s'"), pszFilename);
    22392240
     2241        /* Create raw partition descriptor file. */
    22402242        rc = RTFileOpen(&pImage->File, pszFilename,
    22412243                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
     
    23082310                pExtent->fMetaDirty = false;
    23092311
     2312                /* Create partition table flat image. */
    23102313                rc = RTFileOpen(&pExtent->File, pExtent->pszFullname,
    2311                                 RTFILE_O_READWRITE | RTFILE_O_OPEN_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
     2314                                RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    23122315                if (VBOX_FAILURE(rc))
    23132316                    return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new partition data file '%s'"), pExtent->pszFullname);
     
    23542357                    pExtent->fMetaDirty = false;
    23552358
     2359                    /* Open flat image, the raw partition. */
    23562360                    rc = RTFileOpen(&pExtent->File, pExtent->pszFullname,
    23572361                                    RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_WRITE);
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