mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 6 additions and 0 deletions
|
|
@ -80,6 +80,12 @@ ctl_set_sense_data_va(struct scsi_sense_data *sense_data, u_int *sense_len,
|
|||
* data.
|
||||
*/
|
||||
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
|
||||
* sense if the LUN exists and descriptor sense is turned
|
||||
|
|
|
|||
Loading…
Reference in a new issue