Re: Linux Virtual SCSI HBAs and Virtual disks

Stefan Richter
2007-01-25T22:01:30Z

Aboo Valappil wrote:
> What would i do if the SCSI target does not return any sense code? I
> make some thing up or just return no-sense?

I guess it depends on whether the in-kernel part of your software stack
actually knows enough details to generate correct sense codes.

> In the new version, I made up SK="Illegal request", ASC="Invalid
> Opcode" if I do not receive any sense from target. But I think I
> should return no sense, ie SK=0, ASC=0, ASCQ=0.

I think ASC/ASCQ = 0/0 = "no additional sense information" would indeed
be correct on such occasions.
--
Stefan Richter
-=====-=-=== ---= ==--=