Re: [RESEND PATCH v3] scsi: Bypass certain SCSI commands on disks with "use_192_bytes_for_3f" attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2/25/25 5:11 AM, WangYuli wrote:
Disks have the attribute use_192_bytes_for_3f, which means that disks
> only accept MODE SENSE transfer lengths of 192 bytes>
However, when lshw sends MODE SENSE command to disks,
use_192_bytes_for_3f will not be considered, which will cause some
disks with use_192_bytes_for_3f to be unusable

To solve this problem, it is necessary to determine whether the
device has the use_192_bytes_for_3f attribute at the scsi level. If
the device has use_192_bytes_for_3f, when lshw or other applications
> send MODE SENSE command through ioctl, the command with the data
> length field of 0xff needs to be filtered out to avoid device
> abnormality.
Has it been considered to truncate the MODE SENSE buffer to 192 bytes
instead of rejecting the MODE SENSE command?

Thanks,

Bart.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux