VirtualBox

Changeset 70304 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 22, 2017 8:24:29 AM (7 years ago)
Author:
vboxsync
Message:

VDVfs.cpp: Assertions.

File:
1 edited

Legend:

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

    r70298 r70304  
    9898
    9999            size_t cbPart = cbRead - cbMisalign;
     100            Assert(!(cbPart % 512));
    100101            rc = VDRead(pDisk, off, pbBuf, cbPart);
    101102            if (RT_SUCCESS(rc))
     
    111112            && cbRead)
    112113        {
     114            Assert(cbWrite == cbMisalign);
    113115            Assert(cbRead < 512);
    114116            Assert(!(off % 512));
    115             Assert(cbMisalign > 0);
    116117
    117118            rc = VDRead(pDisk, off, abBuf, 512);
     
    175176
    176177            size_t cbPart = cbWrite - cbMisalign;
     178            Assert(!(cbPart % 512));
    177179            rc = VDWrite(pDisk, off, pbBuf, cbPart);
    178180            if (RT_SUCCESS(rc))
     
    188190            && cbWrite > 0)
    189191        {
    190             Assert(cbMisalign > 0);
     192            Assert(cbWrite == cbMisalign);
    191193            Assert(cbWrite < 512);
    192194            Assert(!(off % 512));
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