VirtualBox

Changeset 57559 in vbox for trunk/src/VBox/Storage/VD.cpp


Ignore:
Timestamp:
Aug 27, 2015 12:42:44 PM (9 years ago)
Author:
vboxsync
Message:

Storage/VD: Allow block allocation when writing back the encrypted data. VDI images have a special zero indicator which makes the read succeed but writing to such a block will return VERR_VD_BLOCK_FREE when VD_WRITE_NO_ALLOC set making the initial encryption fail

File:
1 edited

Legend:

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

    r57390 r57559  
    87778777                        rc = pImage->Backend->pfnWrite(pImage->pBackendData, uOffset,
    87788778                                                       cbThisRead, &IoCtx, &cbThisWrite,
    8779                                                        &cbPreRead, &cbPostRead, VD_WRITE_NO_ALLOC);
     8779                                                       &cbPreRead, &cbPostRead, 0);
    87808780                        if (RT_FAILURE(rc))
    87818781                            break;
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