VirtualBox

Changeset 32132 in vbox


Ignore:
Timestamp:
Aug 31, 2010 11:57:44 AM (14 years ago)
Author:
vboxsync
Message:

iSCSI: Handle all events, not only the first one we encounter

File:
1 edited

Legend:

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

    r31943 r32132  
    23092309        /* Send as much as we can. */
    23102310        rc = pImage->pInterfaceNetCallbacks->pfnSgWriteNB(pImage->Socket, &pImage->pIScsiPDUTxCur->SgBuf, &cbSent);
     2311        LogFlow(("SgWriteNB returned rc=%Rrc cbSent=%zu\n", rc, cbSent));
    23112312        if (RT_SUCCESS(rc))
    23122313        {
     
    23382339        pImage->fPollEvents &= ~VD_INTERFACETCPNET_EVT_WRITE;
    23392340
     2341    LogFlowFunc(("rc=%Rrc pIScsiPDUTxCur=%#p\n", rc, pImage->pIScsiPDUTxCur));
    23402342    return rc;
    23412343}
     
    32803282            msWait = RT_INDEFINITE_WAIT;
    32813283
     3284        LogFlow(("Waiting for events fPollEvents=%#x\n", pImage->fPollEvents));
    32823285        rc = iscsiIoThreadWait(pImage, msWait, pImage->fPollEvents, &fEvents);
    32833286        if (rc == VERR_INTERRUPTED)
     
    33343337                    LogRel(("iSCSI: Handling incoming request failed %Rrc\n", rc));
    33353338            }
    3336             else if (fEvents & VD_INTERFACETCPNET_EVT_WRITE)
     3339
     3340            if (fEvents & VD_INTERFACETCPNET_EVT_WRITE)
    33373341            {
    33383342                LogFlow(("The socket is writable\n"));
     
    33413345                    LogRel(("iSCSI: Sending PDU failed %Rrc\n", rc));
    33423346            }
    3343             else if (fEvents & VD_INTERFACETCPNET_EVT_ERROR)
     3347
     3348            if (fEvents & VD_INTERFACETCPNET_EVT_ERROR)
    33443349            {
    33453350                LogFlow(("An error ocurred\n"));
    33463351                iscsiReattach(pImage);
    33473352            }
    3348             else
    3349                 LogRel(("iSCSI: Received unexpected event %#x\n", fEvents));
    33503353        }
    33513354        else
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