[9274] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Problem w/ recent scsi_scan changes

daemon@ATHENA.MIT.EDU (Robin T. Miller)
Mon Jul 31 09:37:47 2000

Message-ID: <3985816E.CF488E31@compaq.com>
Date:	Mon, 31 Jul 2000 09:38:54 -0400
From:	"Robin T. Miller" <Robin.Miller@compaq.com>
MIME-Version: 1.0
To:	Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc:	Steve Ralston <sralston@ra.ks.lsil.com>,
	linux-scsi <linux-scsi@vger.rutgers.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Alan,
	hmmm... my memory is a little fague on this, but I thought someone
had suggested looking at the Inquiry peripheral qualifier field?

        "Peripheral Device Connected",                          /* 0x0 */
        "Peripheral Device NOT Connected",                      /* 0x1 */
        "Reserved",                                             /* 0x2 */
        "No Physical Device Support"                            /* 0x3 */

	yea, I know not all devices report this correctly, but it should help.
	[ sorry, I don't have 2.4 source so I don't know it it's there already ]

Regards,
Robin

Alan Cox wrote:
> 
> > We're having a problem with recent (linux-2.4.0-test2) scsi_scan.c,
> > centered around this change:
> >       /*
> >        * We used to do a TEST_UNIT_READY before the INQUIRY but that was
> >        * not really necessary.  Spec recommends using INQUIRY to scan for
> >        * devices (and TEST_UNIT_READY to poll for media change). - Paul G.
> 
> This change is correct.
> 
> > We have a RAID subsystem that happens to return (e.g.):
> >   SCSI Error Report =-=-= (ioc0,scsi0:4)
> >     SCSI_Status=02h (CHECK CONDITION)
> >     Original_CDB[]: 00 80 00 00 00 00 - "TEST UNIT READY"
> >     SenseData[A0h]: 70 00 05 00 00 00 00 98 00 00 00 00 25 00 00 00 00 00 ...
> >     SenseKey=5h (ILLEGAL REQUEST); FRU=00h
> >     ASC/ASCQ=25h/00h "LOGICAL UNIT NOT SUPPORTED"
> > to TEST_UNIT_READY (and READ_CAPACITY, et al), which *used* to cause linux
> > to ignore the LUN.
> >
> > We kindly request that TEST_UNIT_READY *before* INQUIRY be reinstated.
> 
> That breaks some standards compliant subsystems. Probably what needs to be done
> is to accept logical-unit-not-supported from a TUR as meaning we guessed wrongly
> 
> Alan
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.rutgers.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post