>The Scsi_Cmnd::scsi_level member looks promising for
>controlling whether that is done:
> if (SDpnt->scsi_level <= SCSI_2)
> scsi_cmd[1] = (lun << 5) & 0xe0;
This is the correct thing to do. You'll also need to inherit the
scsi_level on new lun instances for a target that already has probed
luns. In otherwords, scsi_cmd[1] is always 0 for lun 0, so scanning
lun 0 is safe. All higher lun scans should pick up the scsi level
from lun 0. Even if lun 0 is not supported by the device, it should
return inquiry data with enough information to determine what scsi
level the target supports. If you don't perform the inheritence, then
modern SCSI-3 devices will complain about the now reserved field in
the cdb being non-zero.
--
Justin
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]