VirtualBox

Changeset 79254 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 20, 2019 2:27:10 AM (6 years ago)
Author:
vboxsync
Message:

Main/GuestFileImpl.cpp: Reverted r128569 as comments alone can't fix buggy code (see failing 'offset' check after readAt test) or answer design critique. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestFileImpl.cpp

    r79253 r79254  
    297297    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    298298
    299     /* mData.mOffCurrent gets updated on i_readData[At]() / i_writeData[At]() file notification callbacks.
    300      * So no need to take another roundtrip into the guest asking for the current offset (using tell). */
     299/** @todo r=bird: Why do you have both a offset and a tell() function?
     300 * After a ReadAt or WriteAt with a non-current offset, the tell() result will
     301 * differ from this value, because mOffCurrent is only ever incremented with
     302 * data read or written.  */
    301303    *aOffset = mData.mOffCurrent;
    302304
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