VirtualBox

Changeset 37552 in vbox


Ignore:
Timestamp:
Jun 20, 2011 11:37:06 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72390
Message:

Storage/VDI: do not allocate a block on write if the caller expressed that he doesn't want the allocation

File:
1 edited

Legend:

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

    r37483 r37552  
    11071107        pvUser = pIfProgress->pvUser;
    11081108    }
    1109    
     1109
    11101110    /* Check the image flags. */
    11111111    if ((uImageFlags & ~VD_VDI_IMAGE_FLAGS_MASK) != 0)
     
    13551355            }
    13561356
    1357             if (cbToWrite == getImageBlockSize(&pImage->Header))
     1357            if (   cbToWrite == getImageBlockSize(&pImage->Header)
     1358                && !(fWrite & VD_WRITE_NO_ALLOC))
    13581359            {
    13591360                /* Full block write to previously unallocated block.
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