VirtualBox

Changeset 33030 in vbox for trunk/src


Ignore:
Timestamp:
Oct 11, 2010 8:32:49 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66546
Message:

VDI: Don't allocate a block if the VD_WRITE_NO_ALLOC flag is set even if the write has the required size for the async case (The disk layer has to lock the disk before to ensure metadata consistency).

File:
1 edited

Legend:

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

    r32878 r33030  
    21382138            }
    21392139
    2140             if (cbToWrite == getImageBlockSize(&pImage->Header))
     2140            if (   cbToWrite == getImageBlockSize(&pImage->Header)
     2141                && !(fWrite & VD_WRITE_NO_ALLOC))
    21412142            {
    21422143                /* 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