VirtualBox

Changeset 24178 in vbox


Ignore:
Timestamp:
Oct 29, 2009 10:17:50 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54120
Message:

ISCSIHDDCore.cpp: Fixed regression from >2TB target change - check the status and not just the iscsiCommand return value. netbsd-iscsi target hack (disabled).

File:
1 edited

Legend:

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

    r24144 r24178  
    636636    unsigned int i;
    637637
    638     LogFlow(("drvISCSITransportTcpWrite: cnRequest=%d (%s:%d)\n", cnRequest, pImage->pszHostname, pImage->uPort));
     638    LogFlow(("iscsiTransportWrite: cnRequest=%d (%s:%d)\n", cnRequest, pImage->pszHostname, pImage->uPort));
    639639    if (pImage->Socket == NIL_RTSOCKET)
    640640    {
     
    692692    }
    693693
    694     LogFlow(("drvISCSITransportTcpWrite: returns %Rrc\n", rc));
     694    LogFlow(("iscsiTransportWrite: returns %Rrc\n", rc));
    695695    return rc;
    696696}
     
    981981        aReqBHS[5] = RT_H2N_U32(1 << 16);   /* CID=1,reserved */
    982982        aReqBHS[6] = RT_H2N_U32(pImage->CmdSN);
     983#if 0 /** @todo This ExpStatSN hack is required to make the netbsd-iscsi target working. Could be a bug in the target,
     984       * but they claim a bunch of other initiators works fine with it... Needs looking into. */
     985        aReqBHS[7] = RT_H2N_U32(RT_MIN(pImage->ExpCmdSN, pImage->MaxCmdSN));
     986#else
    983987        aReqBHS[7] = RT_H2N_U32(pImage->ExpStatSN);
     988#endif
    984989        aReqBHS[8] = 0;             /* reserved */
    985990        aReqBHS[9] = 0;             /* reserved */
     
    26062611
    26072612    rc = iscsiCommand(pImage, &sr);
    2608     if (RT_SUCCESS(rc))
     2613    if (   RT_SUCCESS(rc)
     2614        && sr.status == SCSI_STATUS_OK)
    26092615    {
    26102616        pImage->cVolume = RT_BE2H_U64(*(uint64_t *)&data12[0]);
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