儲存庫 vbox 的更動 62748
- 時間撮記:
- 2016-7-30 下午04:08:22 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Storage/ISCSI.cpp
r62482 r62748 1042 1042 { 1043 1043 int rc = VINF_SUCCESS; 1044 uint32_t pad = 0;1045 1044 unsigned int i; 1046 1045 … … 1514 1513 break; 1515 1514 case 0x0001: /* security negotiation, step 1: receive final CHAP variant and challenge. */ 1515 { 1516 1516 rc = iscsiUpdateParameters(pImage, bBuf, aISCSIRes[1].cbSeg); 1517 1517 if (RT_FAILURE(rc)) … … 1558 1558 transit = true; 1559 1559 break; 1560 } 1560 1561 case 0x0002: /* security negotiation, step 2: check authentication success. */ 1561 1562 rc = iscsiUpdateParameters(pImage, bBuf, aISCSIRes[1].cbSeg); … … 2624 2625 static int iscsiValidatePDU(PISCSIRES paRes, uint32_t cnRes) 2625 2626 { 2627 RT_NOREF1(cnRes); 2626 2628 const uint32_t *pcrgResBHS; 2627 2629 uint32_t hw0; … … 2906 2908 /* Copy data from the received PDU into the T2I segments. */ 2907 2909 size_t cbCopied = RTSgBufCopyFromBuf(&pScsiReq->SgBufT2I, pvData, cbData); 2908 Assert(cbCopied == cbData); 2910 Assert(cbCopied == cbData); NOREF(cbCopied); 2909 2911 2910 2912 if (final && (RT_N2H_U32(paResBHS[0]) & ISCSI_STATUS_BIT) != 0) … … 3463 3465 * Internal. Main iSCSI I/O worker. 3464 3466 */ 3465 static DECLCALLBACK(int) iscsiIoThreadWorker(RTTHREAD ThreadSelf, void *pvUser) 3466 { 3467 static DECLCALLBACK(int) iscsiIoThreadWorker(RTTHREAD hThreadSelf, void *pvUser) 3468 { 3469 RT_NOREF1(hThreadSelf); 3467 3470 PISCSIIMAGE pImage = (PISCSIIMAGE)pvUser; 3468 3471 … … 3622 3625 static DECLCALLBACK(void) iscsiCommandCompleteSync(PISCSIIMAGE pImage, int rcReq, void *pvUser) 3623 3626 { 3627 RT_NOREF1(pImage); 3624 3628 PISCSICMDSYNC pIScsiCmdSync = (PISCSICMDSYNC)pvUser; 3625 3629 … … 3811 3815 { 3812 3816 int rc = VINF_SUCCESS; 3813 Assert(!fDelete); /* This MUST be false, the flag isn't supported. */3817 Assert(!fDelete); NOREF(fDelete); /* This MUST be false, the flag isn't supported. */ 3814 3818 3815 3819 /* Freeing a never allocated image (e.g. because the open failed) is … … 4645 4649 /** @copydoc VBOXHDDBACKEND::pfnCheckIfValid */ 4646 4650 static DECLCALLBACK(int) iscsiCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk, 4647 PVDINTERFACE pVDIfsImage, VDTYPE *penmType) 4648 { 4651 PVDINTERFACE pVDIfsImage, VDTYPE *penmType) 4652 { 4653 RT_NOREF4(pszFilename, pVDIfsDisk, pVDIfsImage, penmType); 4649 4654 LogFlowFunc(("pszFilename=\"%s\"\n", pszFilename)); 4650 4655 … … 4731 4736 void **ppBackendData) 4732 4737 { 4738 RT_NOREF8(pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags); 4739 RT_NOREF7(uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData); 4733 4740 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 4734 4741 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); … … 4883 4890 size_t *pcbPostRead, unsigned fWrite) 4884 4891 { 4892 RT_NOREF3(pcbPreRead, pcbPostRead, fWrite); 4885 4893 LogFlowFunc(("pBackendData=%p uOffset=%llu pIoCtx=%#p cbToWrite=%u pcbWriteProcess=%p pcbPreRead=%p pcbPostRead=%p fWrite=%u\n", 4886 4894 pBackendData, uOffset, pIoCtx, cbToWrite, pcbWriteProcess, pcbPreRead, pcbPostRead, fWrite)); … … 5122 5130 static DECLCALLBACK(int) iscsiGetPCHSGeometry(void *pBackendData, PVDGEOMETRY pPCHSGeometry) 5123 5131 { 5132 RT_NOREF1(pPCHSGeometry); 5124 5133 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p\n", pBackendData, pPCHSGeometry)); 5125 5134 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5140 5149 static DECLCALLBACK(int) iscsiSetPCHSGeometry(void *pBackendData, PCVDGEOMETRY pPCHSGeometry) 5141 5150 { 5151 RT_NOREF1(pPCHSGeometry); 5142 5152 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); 5143 5153 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5166 5176 static DECLCALLBACK(int) iscsiGetLCHSGeometry(void *pBackendData, PVDGEOMETRY pLCHSGeometry) 5167 5177 { 5178 RT_NOREF1(pLCHSGeometry); 5168 5179 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p\n", pBackendData, pLCHSGeometry)); 5169 5180 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5184 5195 static DECLCALLBACK(int) iscsiSetLCHSGeometry(void *pBackendData, PCVDGEOMETRY pLCHSGeometry) 5185 5196 { 5197 RT_NOREF1(pLCHSGeometry); 5186 5198 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); 5187 5199 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5277 5289 size_t cbComment) 5278 5290 { 5291 RT_NOREF2(pszComment, cbComment); 5279 5292 LogFlowFunc(("pBackendData=%#p pszComment=%#p cbComment=%zu\n", pBackendData, pszComment, cbComment)); 5280 5293 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5295 5308 static DECLCALLBACK(int) iscsiSetComment(void *pBackendData, const char *pszComment) 5296 5309 { 5310 RT_NOREF1(pszComment); 5297 5311 LogFlowFunc(("pBackendData=%#p pszComment=\"%s\"\n", pBackendData, pszComment)); 5298 5312 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5318 5332 static DECLCALLBACK(int) iscsiGetUuid(void *pBackendData, PRTUUID pUuid) 5319 5333 { 5334 RT_NOREF1(pUuid); 5320 5335 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); 5321 5336 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5336 5351 static DECLCALLBACK(int) iscsiSetUuid(void *pBackendData, PCRTUUID pUuid) 5337 5352 { 5353 RT_NOREF1(pUuid); 5338 5354 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); 5339 5355 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5360 5376 static DECLCALLBACK(int) iscsiGetModificationUuid(void *pBackendData, PRTUUID pUuid) 5361 5377 { 5378 RT_NOREF1(pUuid); 5362 5379 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); 5363 5380 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5378 5395 static DECLCALLBACK(int) iscsiSetModificationUuid(void *pBackendData, PCRTUUID pUuid) 5379 5396 { 5397 RT_NOREF1(pUuid); 5380 5398 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); 5381 5399 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5402 5420 static DECLCALLBACK(int) iscsiGetParentUuid(void *pBackendData, PRTUUID pUuid) 5403 5421 { 5422 RT_NOREF1(pUuid); 5404 5423 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); 5405 5424 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5420 5439 static DECLCALLBACK(int) iscsiSetParentUuid(void *pBackendData, PCRTUUID pUuid) 5421 5440 { 5441 RT_NOREF1(pUuid); 5422 5442 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); 5423 5443 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5444 5464 static DECLCALLBACK(int) iscsiGetParentModificationUuid(void *pBackendData, PRTUUID pUuid) 5445 5465 { 5466 RT_NOREF1(pUuid); 5446 5467 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); 5447 5468 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; … … 5462 5483 static DECLCALLBACK(int) iscsiSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid) 5463 5484 { 5485 RT_NOREF1(pUuid); 5464 5486 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); 5465 5487 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器