From owner-freebsd-bugs Sun Aug 4 14:30:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA24966 for bugs-outgoing; Sun, 4 Aug 1996 14:30:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA24960; Sun, 4 Aug 1996 14:30:03 -0700 (PDT) Resent-Date: Sun, 4 Aug 1996 14:30:03 -0700 (PDT) Resent-Message-Id: <199608042130.OAA24960@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, andrew@why.whine.com Received: from cicerone.uunet.ca (root@cicerone.uunet.ca [142.77.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA24569 for ; Sun, 4 Aug 1996 14:21:28 -0700 (PDT) Received: from why.whine.com ([205.150.249.1]) by mail.uunet.ca with ESMTP id <115607-11204>; Sun, 4 Aug 1996 17:21:20 -0400 Received: (from andrew@localhost) by why.whine.com (8.7.5/8.6.12) id RAA00439; Sun, 4 Aug 1996 17:21:14 -0400 (EDT) Message-Id: <199608042121.RAA00439@why.whine.com> Date: Sun, 4 Aug 1996 17:21:14 -0400 From: Andrew Herdman Reply-To: andrew@why.whine.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1467: Problem with scsi_prevent and DAT drive + solution Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: