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.