VirtualBox

Changeset 35987 in vbox for trunk/src/VBox/Storage/VMDK.cpp


Ignore:
Timestamp:
Feb 15, 2011 5:55:22 PM (14 years ago)
Author:
vboxsync
Message:

VMDK: Always write last grain directory for stream optimized VMDKs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VMDK.cpp

    r34885 r35987  
    45024502                PVMDKEXTENT pExtent = &pImage->pExtents[0];
    45034503                uint32_t uLastGDEntry = pExtent->uLastGrainAccess / pExtent->cGTEntries;
    4504                 if (uLastGDEntry != pExtent->cGDEntries - 1)
     4504                rc = vmdkStreamFlushGT(pImage, pExtent, uLastGDEntry);
     4505                AssertRC(rc);
     4506                vmdkStreamClearGT(pImage, pExtent);
     4507                for (uint32_t i = uLastGDEntry + 1; i < pExtent->cGDEntries; i++)
    45054508                {
    4506                     rc = vmdkStreamFlushGT(pImage, pExtent, uLastGDEntry);
     4509                    rc = vmdkStreamFlushGT(pImage, pExtent, i);
    45074510                    AssertRC(rc);
    4508                     vmdkStreamClearGT(pImage, pExtent);
    4509                     for (uint32_t i = uLastGDEntry + 1; i < pExtent->cGDEntries; i++)
    4510                     {
    4511                         rc = vmdkStreamFlushGT(pImage, pExtent, i);
    4512                         AssertRC(rc);
    4513                     }
    45144511                }
    45154512
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