VirtualBox

Ignore:
Timestamp:
Feb 18, 2008 12:19:35 PM (17 years ago)
Author:
vboxsync
Message:

VDI / VMDK: Added RTFILE_O_NOT_CONTENT_INDEXED for disk image creation.

File:
1 edited

Legend:

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

    r6291 r6987  
    21682168        pExtent = &pImage->pExtents[0];
    21692169        rc = RTFileOpen(&pImage->File, pszFilename,
    2170                         RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE);
     2170                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    21712171        if (VBOX_FAILURE(rc))
    21722172            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new file '%s'"), pszFilename);
     
    22392239
    22402240        rc = RTFileOpen(&pImage->File, pszFilename,
    2241                         RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE);
     2241                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    22422242        if (VBOX_FAILURE(rc))
    22432243            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new file '%s'"), pszFilename);
     
    23092309
    23102310                rc = RTFileOpen(&pExtent->File, pExtent->pszFullname,
    2311                                 RTFILE_O_READWRITE | RTFILE_O_OPEN_CREATE | RTFILE_O_DENY_WRITE);
     2311                                RTFILE_O_READWRITE | RTFILE_O_OPEN_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    23122312                if (VBOX_FAILURE(rc))
    23132313                    return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new partition data file '%s'"), pExtent->pszFullname);
     
    24262426    {
    24272427        rc = RTFileOpen(&pImage->File, pszFilename,
    2428                         RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE);
     2428                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    24292429        if (VBOX_FAILURE(rc))
    24302430            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new sparse descriptor file '%s'"), pszFilename);
     
    24952495        /* Create file for extent. */
    24962496        rc = RTFileOpen(&pExtent->File, pExtent->pszFullname,
    2497                         RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE);
     2497                        RTFILE_O_READWRITE | RTFILE_O_CREATE | RTFILE_O_DENY_WRITE | RTFILE_O_NOT_CONTENT_INDEXED);
    24982498        if (VBOX_FAILURE(rc))
    24992499            return vmdkError(pImage, rc, RT_SRC_POS, N_("VMDK: could not create new file '%s'"), pExtent->pszFullname);
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