Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 1996 17:21:14 -0400
From:      Andrew Herdman <andrew@why.whine.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/1467: Problem with scsi_prevent and DAT drive + solution
Message-ID:  <199608042121.RAA00439@why.whine.com>
Resent-Message-ID: <199608042130.OAA24960@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1467
>Category:       kern
>Synopsis:       scsi_prevent causing tape problems on close
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  4 14:30:01 PDT 1996
>Last-Modified:
>Originator:     Andrew Herdman
>Organization:
Whine Technologies
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

	FreeBSD-Current as of August 3rd, 1996.  ASUS Pentium 133MHz,
	with 32Meg of memory, Buslogics 946c scsi controller, and 
	ARCHIVE Python 25501-009 2.18 DAT Drive.

>Description:

	Doing filesystem dumps or using tar on the non-rewind device
	on the tape drive caused the error message 'bt0 try to abort' 
	appear.  This also cause the tape drive to give up and rewind.

>How-To-Repeat:

	#!/bin/sh
	tar cvf /dev/nrst0 /bin
	tar cvf /dev/nrst0 /sbin

>Fix:
	
	The timeout on scsi_prevent is terribly low.  The following 
	context diff fixes the problem.

	# diff -c scsi_base.c.orig scsi_base.c
	*** scsi_base.c.orig    Sun Aug  4 17:02:52 1996
	--- scsi_base.c Sun Aug  4 16:35:07 1996
	***************
	*** 306,312 ****
	                0,
	                0,
	                2,
	!               5000,
	                NULL,
	                flags));
	  }
	--- 306,312 ----
	                0,
	                0,
	                2,
	!               100000,
	                NULL,
	                flags));
	  }
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608042121.RAA00439>