Date: Mon, 05 Mar 2012 18:45:16 -0800 From: Matthew Jacob <mj@feral.com> To: freebsd-scsi@freebsd.org Subject: Re: [patch] CTL should check condition INQUIRY with invalid LUN Message-ID: <4F557A3C.4080100@feral.com> In-Reply-To: <20120306001731.GA38229@nargothrond.kdm.org> References: <CAM0tzX1=OrfYK3za9s5xkiUDmnO=maHPbhmyv0k50y=6-WTT9w@mail.gmail.com> <20120306001731.GA38229@nargothrond.kdm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/5/2012 4:17 PM, Kenneth D. Merry wrote: > On Mon, Mar 05, 2012 at 14:46:52 -0800, Chuck Tuffli wrote: >> Currently, the CTL responds to INQUIRY commands targeted at invalid >> LUNs by returning valid data with the peripheral qualifier set to LU >> OFFLINE. This patch instead returns a check condition with LU NOT >> READY. >> >> Linux initiators see the LU OFFLINE and start creating SG devices, but >> are not able to finish. The offline also causes them to keep probing >> LUNs. > Linux used to behave properly. What version are you testing with? > > Returning a check condition is not correct according to the spec. This is > from SPC-4 (r31): > > \ Ken (and t10) is right > Since CTL can support a LUN at the requested address, but there isn't one > there, it returns OFFLINE status. > > They should be issuing a REPORT LUNs and then probe the LUNs that are > returned... > > "They"... would that be FreeBSD which is timid to the point of frigidity on this topic?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F557A3C.4080100>