NetBSD Problem Report #1276

From gnats  Tue Jul 25 10:39:28 1995
Received: from saavik.ann-arbor.mi.us (root@saavik.ann-arbor.mi.us [198.108.60.226]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id KAA25263 for <gnats-bugs@gnats.netbsd.org>; Tue, 25 Jul 1995 10:39:27 -0400
Message-Id: <199507251439.KAA09360@saavik.ann-arbor.mi.us>
Date: Tue, 25 Jul 1995 10:39:33 -0400
From: mju@merit.edu
Reply-To: mju@merit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: MTRETEN operation does not work properly with SCSI tapes
X-Send-Pr-Version: 3.2

>Number:         1276
>Category:       kern
>Synopsis:       MTRETEN operation does not work properly with SCSI tapes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    is
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 25 10:50:01 +0000 1995
>Closed-Date:    Thu Jul 16 15:46:40 +0000 1998
>Last-Modified:  Thu Jul 16 15:47:36 +0000 1998
>Originator:     Marc Unangst
>Release:        1.0A as of 7/10/95
>Organization:
Merit Network, Inc.
>Environment:
System: NetBSD saavik.ann-arbor.mi.us 1.0A NetBSD 1.0A (SAAVIK) #3: Wed Jul 19 13:48:01 EDT 1995 root@saavik.ann-arbor.mi.us:/usr/src/sys/arch/i386/compile/SAAVIK i386

Hardware:
	aha0 at isa0 port 0x330-0x333 irq 11 drq 5
	scsibus0 at aha0
	aha0 targ 4 lun 0: <ARCHIVE, Python 25501-XXX, 2.50> SCSI2 1/sequential removable
	st0 at scsibus0: drive empty

>Description:
	The MTRETEN command does not work properly.  Instead of
retensioning the tape, it causes the ioctl call to return an error,
and causes the tape to be unloaded.
>How-To-Repeat:
root@saavik:~# mt -f /dev/nrst0 reten
mt: /dev/nrst0: retension: Input/output error
st0(aha0:4:0): not ready, data = 00 00 00 00 3a 00 00 00 00 00
root@saavik:~#
>Fix:
	This might be due to the timeout in the st driver being too
short.  The drive takes longer than the st driver thinks it should to
process the command, and as a result a NOT READY error is returned, and
the drive is reset (which causes the tape to be unloaded).  If this
is the cause, then the fix is to extend the timeout in the st driver.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: is 
State-Changed-When: Sun Dec 28 13:48:53 PST 1997 
State-Changed-Why:  
It works for me... does this still happen for you with netbsd-1.2 or 1.3_BETA? 
-is 


Responsible-Changed-From-To: kern-bug-people->is 
Responsible-Changed-By: is 
Responsible-Changed-When: Sun Dec 28 13:48:53 PST 1997 
Responsible-Changed-Why:  
I'm looking at this. 
State-Changed-From-To: feedback->closed 
State-Changed-By: mjacob 
State-Changed-When: Thu Jul 16 08:46:40 PDT 1998 
State-Changed-Why:  
Well- the timeouts have been lengthened, if indeed that was the problem. 
It should be noted that not all tape devices support retentioning or do 
sane things when given that command. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.