Changeset 21807 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Jul 27, 2009 11:19:23 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
r21806 r21807 2758 2758 } 2759 2759 2760 /* 2761 * Clip read size to a value which is supported by many targets. 2762 */ 2763 cbToRead = RT_MIN(cbToRead, _256K); 2764 2760 2765 lba = uOffset / pImage->cbSector; 2761 2766 tls = (uint16_t)(cbToRead / pImage->cbSector); … … 2787 2792 rc = iscsiCommand(pImage, &sr); 2788 2793 if (RT_FAILURE(rc)) 2794 { 2789 2795 AssertMsgFailed(("iscsiCommand(%s, %#llx) -> %Rrc\n", pImage->pszTargetName, uOffset, rc)); 2796 *pcbActuallyRead = 0; 2797 } 2798 else 2799 *pcbActuallyRead = cbToRead; 2790 2800 2791 2801 out: … … 2821 2831 *pcbPreRead = 0; 2822 2832 *pcbPostRead = 0; 2833 2834 /* 2835 * Clip write size to a value which is supported by many targets. 2836 */ 2837 cbToWrite = RT_MIN(cbToWrite, _256K); 2823 2838 2824 2839 lba = uOffset / pImage->cbSector;
Note:
See TracChangeset
for help on using the changeset viewer.