From owner-freebsd-scsi Sun Nov 21 15: 6: 4 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 1C50B152A5; Sun, 21 Nov 1999 15:06:01 -0800 (PST) (envelope-from mjacob@feral.com) Received: from semuta.feral.com (semuta [192.67.166.70]) by feral.com (8.8.7/8.8.7) with ESMTP id PAA01194; Sun, 21 Nov 1999 15:06:46 -0800 Date: Sun, 21 Nov 1999 15:06:46 -0800 (PST) From: Matthew Jacob Reply-To: mjacob@feral.com To: Stefan Esser Cc: Jos Backus , freebsd-scsi@FreeBSD.ORG Subject: Re: Tape eject problem In-Reply-To: <19991121212659.A5103@dialup124.zpr.uni-koeln.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Why don't you catch up on your mail before blasting away. It's already been noted and checked in for crap's sake... On Sun, 21 Nov 1999, Stefan Esser wrote: > On 1999-11-21 18:58 +0100, Jos Backus wrote: > > [This is with a -current kernel & world as of today.] > > > > # mt rewoffl > > > > used to rewind and eject a tape cartrigde, if present. It rewinds but no > > longer ejects, instead the unit just goes off-line. > > Also, I'm seeing > > > > Nov 21 17:49:50 jos /kernel: (sa0:ahc0:0:3:0): READ(06). CDB: 8 0 2 0 0 0 > > Nov 21 17:49:50 jos /kernel: (sa0:ahc0:0:3:0): UNIT ATTENTION asc:28,0 > > Nov 21 17:49:50 jos /kernel: (sa0:ahc0:0:3:0): Not ready to ready change, > > medium may have changed > > > > The tape drive is detected as > > > > sa0 at ahc0 bus 0 target 3 lun 0 > > sa0: Removable Sequential Access SCSI-2 device > > sa0: 10.000MB/s transfers (10.000MHz, offset 32) > > > > ``camcontrol eject 0:3:0'' does eject the media. > > > > Is the new mt behavior intentional? Is ``camcontrol eject'' the preferred way > > to eject media? > > The problem appears to be caused by recent changes to scsi_sa.c. > You may want to try the following patch: > > Index: /sys/cam/scsi/scsi_sa.c > =================================================================== > RCS file: /usr/cvs/src/sys/cam/scsi/scsi_sa.c,v > retrieving revision 1.38 > diff -u -2 -r1.38 scsi_sa.c > --- scsi_sa.c 1999/11/17 17:11:21 1.38 > +++ scsi_sa.c 1999/11/21 20:25:15 > @@ -1037,7 +1037,7 @@ > */ > > + saprevent(periph, PR_ALLOW); > softc->flags &= ~(SA_FLAG_TAPE_LOCKED| > SA_FLAG_TAPE_FROZEN|SA_FLAG_TAPE_MOUNTED); > - saprevent(periph, PR_ALLOW); > if (error == 0) > error = saloadunload(periph, FALSE); > > Regards, STefan > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message