File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,10 @@ std::optional<scsi_response> scsi::send(const uint64_t lun, const uint8_t *const
247
247
response.io .what .data .first [23 ] = 00 ; // LSB of 'MAXIMUM UNMAP LBA COUNT'
248
248
response.io .what .data .first [27 ] = 8 ; // LSB of 'MAXIMUM UNMAP BLOCK DESCRIPTOR COUNT'
249
249
response.io .what .data .first [31 ] = 8 ; // LSB of 'OPTIMAL UNMAP GRANULARITY'
250
- response.io .what .data .first [40 ] = MAX_WS_LEN >> 24 ; // 'MAXIMUM WRITE SAME LENGTH'
251
- response.io .what .data .first [41 ] = MAX_WS_LEN >> 16 ;
252
- response.io .what .data .first [42 ] = MAX_WS_LEN >> 8 ;
253
- response.io .what .data .first [43 ] = MAX_WS_LEN;
250
+ response.io .what .data .first [40 ] = uint8_t ( MAX_WS_LEN >> 24 ) ; // 'MAXIMUM WRITE SAME LENGTH'
251
+ response.io .what .data .first [41 ] = uint8_t ( MAX_WS_LEN >> 16 ) ;
252
+ response.io .what .data .first [42 ] = uint8_t ( MAX_WS_LEN >> 8 ) ;
253
+ response.io .what .data .first [43 ] = uint8_t ( MAX_WS_LEN) ;
254
254
// ... set rest to 'not set'
255
255
}
256
256
else if (CDB[2 ] == 0xb1 ) { // block device characteristics
You can’t perform that action at this time.
0 commit comments