How to handle Test Unit Ready command

Scott Long scott4long at yahoo.com
Mon Aug 15 17:58:51 UTC 2016


The right way to do it in CAM is to respond with CAM_SEL_TIMEOUT.  If you respond with something like CAM_DEV_NOT_THERE, I think it’ll trigger error recovery, retries, and ugly console messages.  Probably should fix that if it hasn’t been done already.

Scott

> On Aug 15, 2016, at 3:01 AM, Hongjiang Zhang via freebsd-scsi <freebsd-scsi at freebsd.org> wrote:
> 
> Hi,
> 
> I'm developing the SCSI storage driver for FreeBSD on Hyper-V. When the host side hot removed a scsi disk from LUN 0, there will a TUR command issued from VM side. But what is the expected TUR response if the specified LUN is invalid?
> 
> Thanks
> Hongjiang Zhang
> _______________________________________________
> freebsd-scsi at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe at freebsd.org"



More information about the freebsd-scsi mailing list