Changeset 18507 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Mar 29, 2009 2:43:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r17970 r18507 946 946 | (ISCSI_MY_VERSION << 8) /* Maximum version. */ 947 947 | ISCSIOP_LOGIN_REQ); /* C=0 */ 948 aReqBHS[1] = RT_H2N_U32( cbBuf); /* TotalAHSLength=0 */948 aReqBHS[1] = RT_H2N_U32((uint32_t)cbBuf); /* TotalAHSLength=0 */ 949 949 aReqBHS[2] = RT_H2N_U32(isid_tsih >> 32); 950 950 aReqBHS[3] = RT_H2N_U32(isid_tsih & 0xffffffff); … … 1348 1348 cbData = 0; 1349 1349 if (pRequest->enmXfer == SCSIXFER_FROM_TARGET) 1350 cbData = pRequest->cbT2IData;1350 cbData = (uint32_t)pRequest->cbT2IData; 1351 1351 else 1352 cbData = pRequest->cbI2TData;1352 cbData = (uint32_t)pRequest->cbI2TData; 1353 1353 1354 1354 RTSemMutexRequest(pImage->Mutex, RT_INDEFINITE_WAIT); … … 1358 1358 aReqBHS[0] = RT_H2N_U32( ISCSI_FINAL_BIT | ISCSI_TASK_ATTR_ORDERED | ISCSIOP_SCSI_CMD 1359 1359 | (pRequest->enmXfer << 21)); /* I=0,F=1,Attr=Ordered */ 1360 aReqBHS[1] = RT_H2N_U32(0x00000000 | ( pRequest->cbI2TData & 0xffffff)); /* TotalAHSLength=0 */1360 aReqBHS[1] = RT_H2N_U32(0x00000000 | ((uint32_t)pRequest->cbI2TData & 0xffffff)); /* TotalAHSLength=0 */ 1361 1361 aReqBHS[2] = RT_H2N_U32(pImage->LUN >> 32); 1362 1362 aReqBHS[3] = RT_H2N_U32(pImage->LUN & 0xffffffff); … … 2704 2704 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; 2705 2705 uint64_t lba; 2706 size_t tls;2706 uint16_t tls; 2707 2707 int rc; 2708 2708 … … 2722 2722 2723 2723 lba = uOffset / pImage->cbSector; 2724 tls = cbToRead / pImage->cbSector;2724 tls = (uint16_t)(cbToRead / pImage->cbSector); 2725 2725 SCSIREQ sr; 2726 2726 uint8_t cdb[10]; … … 2766 2766 PISCSIIMAGE pImage = (PISCSIIMAGE)pBackendData; 2767 2767 uint64_t lba; 2768 size_t tls;2768 uint16_t tls; 2769 2769 int rc; 2770 2770 … … 2786 2786 2787 2787 lba = uOffset / pImage->cbSector; 2788 tls = cbToWrite / pImage->cbSector;2788 tls = (uint16_t)(cbToWrite / pImage->cbSector); 2789 2789 SCSIREQ sr; 2790 2790 uint8_t cdb[10];
Note:
See TracChangeset
for help on using the changeset viewer.