scsi_check_sense() interfering with pass-through SCSI calls

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

 



I have been sent an example of sg_verify giving strange results
in BYTCHK mode. A bus analyzer is showing a properly formed
sense buffer with a sense_key of MISCOMPARE. In lk 3.3.0
scsi_check_sense() is detecting this case and setting
DID_TARGET_ERROR. For a pass-through call originating from
the sg or bsg driver that is unwelcome interference.

Since users of a SCSI command pass-through should be
checking the SCSI status and sense buffer, then commands
issued by the bsg and sg driver (probably st as well)
should not be calling scsi_check_sense() IMO.

Doug Gilbert

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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