iSCSI/luns/check-condition
Scott Long
scottl at samsco.org
Sun Aug 27 13:02:00 UTC 2006
Danny Braniss wrote:
> [...]
>
>>>sorry to barge in :-)
>>>but my initial problem was that the driver went into a loop.
>>> 0- cam starts lun discovery
>>> 1- cam sends inq
>>> 2- target replies 'condition check'
>>> 3- cam ignores,
>>> 4- back to 1
>>
>>This is only going to happen if the SIM is returning CAM_REQ_CMP.
>>You should be returning CAM_REQ_CMP_ERROR. An ASC of 0x24 will set
>>SS_FATAL, which will cause probedone() to break out of the probe
>>sequence.
>
>
> I was returning CAM_SCSI_STATUS_ERROR. now im returning CAM_REQ_CMP_ERR
> and the loop is broken, thanks. Couldn't figure out how to
> deal with 'ASC of 0x24' - maybe after coffee.
>
Actually, CAM_SCSI_STATUS_ERROR should have worked. Did you set
CAM_AUTOSNS_VALID? If not, then that probably caused the loop.
Scott
More information about the freebsd-scsi
mailing list