SPC-3 and up require some UAs to be returned as fixed.
MFC after: 2 weeks
This commit is contained in:
parent
ee37749af6
commit
68035f6381
@ -80,6 +80,12 @@ ctl_set_sense_data_va(struct scsi_sense_data *sense_data, u_int *sense_len,
|
|||||||
* data.
|
* data.
|
||||||
*/
|
*/
|
||||||
if (sense_format == SSD_TYPE_NONE) {
|
if (sense_format == SSD_TYPE_NONE) {
|
||||||
|
/*
|
||||||
|
* SPC-3 and up require some UAs to be returned as fixed.
|
||||||
|
*/
|
||||||
|
if (asc == 0x29 || (asc == 0x2A && ascq == 0x01))
|
||||||
|
sense_format = SSD_TYPE_FIXED;
|
||||||
|
else
|
||||||
/*
|
/*
|
||||||
* If the format isn't specified, we only return descriptor
|
* If the format isn't specified, we only return descriptor
|
||||||
* sense if the LUN exists and descriptor sense is turned
|
* sense if the LUN exists and descriptor sense is turned
|
||||||
|
Loading…
Reference in New Issue
Block a user