Changeset 33121 in vbox
- Timestamp:
- Oct 14, 2010 8:54:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r32691 r33121 3335 3335 case ISCSICMDTYPE_REQ: 3336 3336 { 3337 rc = iscsiPDUTxPrepare(pImage, pIScsiCmd); 3338 AssertRC(rc); 3337 /* If there is no connection complete the command with an error. */ 3338 if (RT_LIKELY(iscsiIsClientConnected(pImage))) 3339 { 3340 rc = iscsiPDUTxPrepare(pImage, pIScsiCmd); 3341 AssertRC(rc); 3342 } 3343 else 3344 iscsiCmdComplete(pImage, pIScsiCmd, VERR_NET_CONNECTION_REFUSED); 3339 3345 break; 3340 3346 } … … 3694 3700 pImage->pvRecvPDUBuf = NULL; 3695 3701 } 3702 3703 pImage->cbRecvPDUResidual = 0; 3696 3704 } 3697 3705 … … 3720 3728 fHostIPDef = !!uHostIPTmp; 3721 3729 3722 #if 03723 if (uOpenFlags & VD_OPEN_FLAGS_ASYNC_IO)3724 return VERR_NOT_SUPPORTED;3725 #endif3726 3727 3730 pImage->uOpenFlags = uOpenFlags; 3728 3731 … … 3957 3960 3958 3961 memset(pImage->aCmdsWaiting, 0, sizeof(pImage->aCmdsWaiting)); 3962 pImage->cbRecvPDUResidual = 0; 3959 3963 3960 3964 /* Create the socket structure. */ … … 4560 4564 if (RT_FAILURE(rc)) 4561 4565 { 4562 AssertMsgFailed(("iscsiCommand(%s, %#llx) -> %Rrc\n", pImage->pszTargetName, uOffset, rc));4566 LogFlow(("iscsiCommandSync(%s, %#llx) -> %Rrc\n", pImage->pszTargetName, uOffset, rc)); 4563 4567 *pcbActuallyRead = 0; 4564 4568 } … … 4664 4668 if (RT_FAILURE(rc)) 4665 4669 { 4666 AssertMsgFailed(("iscsiCommand(%s, %#llx) -> %Rrc\n", pImage->pszTargetName, uOffset, rc));4670 LogFlow(("iscsiCommandSync(%s, %#llx) -> %Rrc\n", pImage->pszTargetName, uOffset, rc)); 4667 4671 *pcbWriteProcess = 0; 4668 4672 }
Note:
See TracChangeset
for help on using the changeset viewer.