Changeset 100908 in vbox for trunk/src/VBox/Runtime/common/fs
- Timestamp:
- Aug 19, 2023 2:57:05 AM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 158845
- Location:
- trunk/src/VBox/Runtime/common/fs
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/extvfs.cpp
r99739 r100908 1716 1716 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 1717 1717 */ 1718 static DECLCALLBACK(int) rtFsExtFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)1718 static DECLCALLBACK(int) rtFsExtFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 1719 1719 { 1720 1720 PRTFSEXTFILE pThis = (PRTFSEXTFILE)pvThis; … … 1733 1733 rc = rtFsExtInode_Read(pThis->pVol, pThis->pInode, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbRead, NULL); 1734 1734 if (RT_SUCCESS(rc)) 1735 { 1735 1736 pThis->offFile = off + cbRead; 1737 RTSgBufAdvance(pSgBuf, cbRead); 1738 } 1736 1739 Log6(("rtFsExtFile_Read: off=%#RX64 cbSeg=%#x -> %Rrc\n", off, pSgBuf->paSegs[0].cbSeg, rc)); 1737 1740 } … … 1760 1763 pThis->offFile = off + cbRead; 1761 1764 *pcbRead = cbRead; 1765 RTSgBufAdvance(pSgBuf, cbRead); 1762 1766 } 1763 1767 else … … 1774 1778 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite} 1775 1779 */ 1776 static DECLCALLBACK(int) rtFsExtFile_Write(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)1780 static DECLCALLBACK(int) rtFsExtFile_Write(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten) 1777 1781 { 1778 1782 RT_NOREF(pvThis, off, pSgBuf, fBlocking, pcbWritten); -
trunk/src/VBox/Runtime/common/fs/fatvfs.cpp
r98103 r100908 2165 2165 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 2166 2166 */ 2167 static DECLCALLBACK(int) rtFsFatFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)2167 static DECLCALLBACK(int) rtFsFatFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 2168 2168 { 2169 2169 PRTFSFATFILE pThis = (PRTFSFATFILE)pvThis; … … 2230 2230 if (pcbRead) 2231 2231 *pcbRead = cbRead; 2232 RTSgBufAdvance(pSgBuf, cbRead); 2232 2233 return rc; 2233 2234 } … … 2327 2328 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite} 2328 2329 */ 2329 static DECLCALLBACK(int) rtFsFatFile_Write(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)2330 static DECLCALLBACK(int) rtFsFatFile_Write(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten) 2330 2331 { 2331 2332 PRTFSFATFILE pThis = (PRTFSFATFILE)pvThis; … … 2401 2402 if (pcbWritten) 2402 2403 *pcbWritten = cbWritten; 2404 RTSgBufAdvance(pSgBuf, cbWritten); 2403 2405 return rc; 2404 2406 } -
trunk/src/VBox/Runtime/common/fs/isomaker.cpp
r98103 r100908 7280 7280 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 7281 7281 */ 7282 static DECLCALLBACK(int) rtFsIsoMakerOutFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)7282 static DECLCALLBACK(int) rtFsIsoMakerOutFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 7283 7283 { 7284 7284 PRTFSISOMAKEROUTPUTFILE pThis = (PRTFSISOMAKEROUTPUTFILE)pvThis; … … 7396 7396 if (pcbRead) 7397 7397 *pcbRead = cbRead; 7398 RTSgBufAdvance(pSgBuf, cbRead); 7398 7399 return rc; 7399 7400 } -
trunk/src/VBox/Runtime/common/fs/isovfs.cpp
r98103 r100908 2119 2119 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 2120 2120 */ 2121 static DECLCALLBACK(int) rtFsIsoFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)2121 static DECLCALLBACK(int) rtFsIsoFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 2122 2122 { 2123 2123 PRTFSISOFILEOBJ pThis = (PRTFSISOFILEOBJ)pvThis; … … 2140 2140 /* Update the file position and return. */ 2141 2141 pThis->offFile = off + offDelta; 2142 RTSgBufAdvance(pSgBuf, offDelta); 2143 2142 2144 return rc; 2143 2145 #else -
trunk/src/VBox/Runtime/common/fs/ntfsvfs.cpp
r98103 r100908 2374 2374 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 2375 2375 */ 2376 static DECLCALLBACK(int) rtFsNtfsFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)2376 static DECLCALLBACK(int) rtFsNtfsFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 2377 2377 { 2378 2378 PRTFSNTFSFILE pThis = (PRTFSNTFSFILE)pvThis; … … 2391 2391 rc = rtFsNtfsAttr_Read(pThis->pShared->pData, off, pSgBuf->paSegs[0].pvSeg, cbRead); 2392 2392 if (RT_SUCCESS(rc)) 2393 { 2393 2394 pThis->offFile = off + cbRead; 2395 RTSgBufAdvance(pSgBuf, cbRead); 2396 } 2394 2397 Log6(("rtFsNtfsFile_Read: off=%#RX64 cbSeg=%#x -> %Rrc\n", off, pSgBuf->paSegs[0].cbSeg, rc)); 2395 2398 } … … 2418 2421 pThis->offFile = off + cbRead; 2419 2422 *pcbRead = cbRead; 2423 RTSgBufAdvance(pSgBuf, cbRead); 2420 2424 } 2421 2425 else … … 2432 2436 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite} 2433 2437 */ 2434 static DECLCALLBACK(int) rtFsNtfsFile_Write(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)2438 static DECLCALLBACK(int) rtFsNtfsFile_Write(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten) 2435 2439 { 2436 2440 PRTFSNTFSFILE pThis = (PRTFSNTFSFILE)pvThis; … … 2451 2455 Log6(("rtFsNtfsFile_Write: off=%#RX64 cbToWrite=%#zx -> %Rrc\n", off, cbToWrite, rc)); 2452 2456 if (RT_SUCCESS(rc)) 2457 { 2453 2458 pThis->offFile = off + cbToWrite; 2459 RTSgBufAdvance(pSgBuf, cbToWrite); 2460 } 2454 2461 if (pcbWritten) 2455 2462 *pcbWritten = RT_SUCCESS(rc) ? cbToWrite : 0; … … 2466 2473 if (pcbWritten) 2467 2474 *pcbWritten = cbWritten; 2475 RTSgBufAdvance(pSgBuf, cbWritten); 2468 2476 rc = VERR_EOF; 2469 2477 } -
trunk/src/VBox/Runtime/common/fs/xfsvfs.cpp
r99739 r100908 1474 1474 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnRead} 1475 1475 */ 1476 static DECLCALLBACK(int) rtFsXfsFile_Read(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead)1476 static DECLCALLBACK(int) rtFsXfsFile_Read(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbRead) 1477 1477 { 1478 1478 PRTFSXFSFILE pThis = (PRTFSXFSFILE)pvThis; … … 1491 1491 rc = rtFsXfsInode_Read(pThis->pVol, pThis->pInode, (uint64_t)off, pSgBuf->paSegs[0].pvSeg, cbRead, NULL); 1492 1492 if (RT_SUCCESS(rc)) 1493 { 1493 1494 pThis->offFile = off + cbRead; 1495 RTSgBufAdvance(pSgBuf, cbRead); 1496 } 1494 1497 Log6(("rtFsXfsFile_Read: off=%#RX64 cbSeg=%#x -> %Rrc\n", off, pSgBuf->paSegs[0].cbSeg, rc)); 1495 1498 } … … 1518 1521 pThis->offFile = off + cbRead; 1519 1522 *pcbRead = cbRead; 1523 RTSgBufAdvance(pSgBuf, cbRead); 1520 1524 } 1521 1525 else … … 1532 1536 * @interface_method_impl{RTVFSIOSTREAMOPS,pfnWrite} 1533 1537 */ 1534 static DECLCALLBACK(int) rtFsXfsFile_Write(void *pvThis, RTFOFF off, P CRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten)1538 static DECLCALLBACK(int) rtFsXfsFile_Write(void *pvThis, RTFOFF off, PRTSGBUF pSgBuf, bool fBlocking, size_t *pcbWritten) 1535 1539 { 1536 1540 RT_NOREF(pvThis, off, pSgBuf, fBlocking, pcbWritten);
Note:
See TracChangeset
for help on using the changeset viewer.