VirtualBox

Changeset 30468 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jun 28, 2010 1:58:04 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63149
Message:

IPRT:

  • Corrected RTSGBUF member names.
  • Corrected RTSgBufInit parameter names.
  • Don't use AssertReturnVoid (and variations) in RTSgBuf* as there the result is that we use uninitialized structures. Better to crash and burn in IPRT then.
  • Added RTSocketSgWriteL/LV and RTTcpSgWriteL/LV for lazy guys like me.
  • RTSocketSgWrite doesn't need a do {} while (0).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r30309 r30468  
    740740    /* This is an extremely crude emulation, however it's good enough
    741741     * for our iSCSI code. INIP has no sendmsg(). */
    742     for (unsigned i = 0; i < pSgBuf->cSeg; i++)
    743     {
    744         rc = drvvdINIPWrite(Sock, pSgBuf->pcaSeg[i].pvSeg,
    745                             pSgBuf->pcaSeg[i].cbSeg);
     742    for (unsigned i = 0; i < pSgBuf->cSegs; i++)
     743    {
     744        rc = drvvdINIPWrite(Sock, pSgBuf->paSegs[i].pvSeg,
     745                            pSgBuf->paSegs[i].cbSeg);
    746746        if (RT_FAILURE(rc))
    747747            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette