VirtualBox

Changeset 62562 in vbox for trunk/src


Ignore:
Timestamp:
Jul 26, 2016 2:07:55 PM (8 years ago)
Author:
vboxsync
Message:

rtVfsReadAhead_Seek: Set poffActual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsreadahead.cpp

    r62448 r62562  
    348348static DECLCALLBACK(int) rtVfsReadAhead_Write(void *pvThis, RTFOFF off, PCRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)
    349349{
     350    RT_NOREF_PV(pvThis); RT_NOREF_PV(off); RT_NOREF_PV(pSgBuf); RT_NOREF_PV(fBlocking); RT_NOREF_PV(pcbWritten);
    350351    AssertFailed();
    351352    return VERR_ACCESS_DENIED;
     
    403404
    404405    RTCritSectEnter(&pThis->IoCritSect);
    405     /// @todo int rc = RTVfsFileSetMode(pThis->hFile, fMode, fMask);
     406    RT_NOREF_PV(fMode); RT_NOREF_PV(fMask); /// @todo int rc = RTVfsFileSetMode(pThis->hFile, fMode, fMask);
    406407    int rc = VERR_NOT_SUPPORTED;
    407408    RTCritSectLeave(&pThis->IoCritSect);
     
    415416 */
    416417static DECLCALLBACK(int) rtVfsReadAhead_SetTimes(void *pvThis, PCRTTIMESPEC pAccessTime, PCRTTIMESPEC pModificationTime,
    417                                                PCRTTIMESPEC pChangeTime, PCRTTIMESPEC pBirthTime)
     418                                                 PCRTTIMESPEC pChangeTime, PCRTTIMESPEC pBirthTime)
    418419{
    419420    PRTVFSREADAHEAD pThis = (PRTVFSREADAHEAD)pvThis;
     
    421422
    422423    RTCritSectEnter(&pThis->IoCritSect);
     424    RT_NOREF_PV(pAccessTime); RT_NOREF_PV(pModificationTime); RT_NOREF_PV(pChangeTime); RT_NOREF_PV(pBirthTime);
    423425    /// @todo int rc = RTVfsFileSetTimes(pThis->hFile, pAccessTime, pModificationTime, pChangeTime, pBirthTime);
    424426    int rc = VERR_NOT_SUPPORTED;
     
    438440
    439441    RTCritSectEnter(&pThis->IoCritSect);
     442    RT_NOREF_PV(uid); RT_NOREF_PV(gid);
    440443    /// @todo int rc = RTVfsFileSetOwner(pThis->hFile, uid, gid);
    441444    int rc = VERR_NOT_SUPPORTED;
     
    460463    int rc = RTVfsFileSeek(pThis->hFile, offSeek, uMethod, &offActual);
    461464    if (RT_SUCCESS(rc))
     465    {
    462466        pThis->offConsumer = offActual;
     467        if (poffActual)
     468            *poffActual = offActual;
     469    }
    463470
    464471    RTCritSectLeave(&pThis->BufferCritSect);
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