From owner-freebsd-scsi Sun Nov 21 15: 2:41 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from dialup124.zpr.uni-koeln.de (1-118.K.dial.o-tel-o.net [212.144.1.118]) by hub.freebsd.org (Postfix) with ESMTP id 6DA5C14E47; Sun, 21 Nov 1999 15:02:34 -0800 (PST) (envelope-from se@zpr.uni-koeln.de) Received: by dialup124.zpr.uni-koeln.de (Postfix, from userid 200) id 56228C24; Sun, 21 Nov 1999 21:26:59 +0100 (CET) Date: Sun, 21 Nov 1999 21:26:59 +0100 From: Stefan Esser To: Jos Backus Cc: freebsd-scsi@FreeBSD.ORG, Stefan Esser Subject: Re: Tape eject problem Message-ID: <19991121212659.A5103@dialup124.zpr.uni-koeln.de> Reply-To: se@freebsd.org References: <19991121185852.A75911@hal.mpn.cp.philips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <19991121185852.A75911@hal.mpn.cp.philips.com>; from Jos Backus on Sun, Nov 21, 1999 at 06:58:52PM +0100 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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