Changeset 65078 in vbox for trunk/src/VBox/Devices/Storage/DrvHostBase-freebsd.cpp
- Timestamp:
- Jan 3, 2017 1:24:58 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112580
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase-freebsd.cpp
r64316 r65078 27 27 #include <iprt/log.h> 28 28 29 /** Maximum buffer size supported by the CAM subsystem. */ 30 #define FBSD_SCSI_MAX_BUFFER_SIZE (64 * _1K) 31 29 32 /** 30 33 * Host backend specific data. … … 149 152 150 153 154 DECLHIDDEN(size_t) drvHostBaseScsiCmdGetBufLimitOs(PDRVHOSTBASE pThis) 155 { 156 RT_NOREF(pThis); 157 158 return FBSD_SCSI_MAX_BUFFER_SIZE; 159 } 160 161 151 162 DECLHIDDEN(int) drvHostBaseGetMediaSizeOs(PDRVHOSTBASE pThis, uint64_t *pcb) 152 163 { … … 194 205 const uint32_t LBA = off / pThis->Os.cbBlock; 195 206 AssertReturn(!(off % pThis->Os.cbBlock), VERR_INVALID_PARAMETER); 196 uint32_t cbRead32 = cbRead > SCSI_MAX_BUFFER_SIZE197 ? SCSI_MAX_BUFFER_SIZE207 uint32_t cbRead32 = cbRead > FBSD_SCSI_MAX_BUFFER_SIZE 208 ? FBSD_SCSI_MAX_BUFFER_SIZE 198 209 : (uint32_t)cbRead; 199 210 const uint32_t cBlocks = cbRead32 / pThis->Os.cbBlock;
Note:
See TracChangeset
for help on using the changeset viewer.