Date: Tue, 16 Aug 2016 04:01:20 +0000 From: Hongjiang Zhang <honzhan@microsoft.com> To: Scott Long <scott4long@yahoo.com> Cc: "freebsd-scsi@freebsd.org" <freebsd-scsi@freebsd.org> Subject: RE: How to handle Test Unit Ready command Message-ID: <SN2PR03MB2224DA353B7B7F938F8BFE4AB5130@SN2PR03MB2224.namprd03.prod.outlook.com> In-Reply-To: <33643A7B-F529-4B17-9BFC-CDF1A75C1D53@yahoo.com> References: <SN2PR03MB222418C6E32D2F89DF59D72AB5120@SN2PR03MB2224.namprd03.prod.outlook.com> <33643A7B-F529-4B17-9BFC-CDF1A75C1D53@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Scott. It works for me. You help resolve an issue which confused me for a long time. :-) Before that I have tried "CAM_DEV_NOT_THERE" for invalid LUN, but it blocks the scan for higher LUN than 7. -----Original Message----- From: Scott Long [mailto:scott4long@yahoo.com] Sent: Tuesday, August 16, 2016 1:57 AM To: Hongjiang Zhang <honzhan@microsoft.com> Cc: freebsd-scsi@freebsd.org Subject: Re: How to handle Test Unit Ready command 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@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@freebsd.org mailing list > https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2flists > .freebsd.org%2fmailman%2flistinfo%2ffreebsd-scsi&data=01%7c01%7chonzha > n%40microsoft.com%7c661ed35c02a841ca8ac208d3c5358819%7c72f988bf86f141a > f91ab2d7cd011db47%7c1&sdata=MHFDmlweq0C3Q90VIb%2fcpzBktoMARKWRTbSqHTC2 > hNk%3d To unsubscribe, send any mail to > "freebsd-scsi-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN2PR03MB2224DA353B7B7F938F8BFE4AB5130>
