From owner-freebsd-i386@FreeBSD.ORG Mon Jan 2 20:20:12 2006 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4089816A41F for ; Mon, 2 Jan 2006 20:20:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8BA743D7B for ; Mon, 2 Jan 2006 20:20:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k02KKBpK070835 for ; Mon, 2 Jan 2006 20:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k02KKB9S070834; Mon, 2 Jan 2006 20:20:11 GMT (envelope-from gnats) Resent-Date: Mon, 2 Jan 2006 20:20:11 GMT Resent-Message-Id: <200601022020.k02KKB9S070834@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steve Davidson Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8878616A41F for ; Mon, 2 Jan 2006 20:17:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3436F43D46 for ; Mon, 2 Jan 2006 20:17:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k02KHOuO052576 for ; Mon, 2 Jan 2006 20:17:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k02KHNXu052575; Mon, 2 Jan 2006 20:17:24 GMT (envelope-from nobody) Message-Id: <200601022017.k02KHNXu052575@www.freebsd.org> Date: Mon, 2 Jan 2006 20:17:24 GMT From: Steve Davidson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: i386/91238: USB tape unit fails to write a second tape file to the no-rewind device. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 20:20:12 -0000 >Number: 91238 >Category: i386 >Synopsis: USB tape unit fails to write a second tape file to the no-rewind device. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 02 20:20:11 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Steve Davidson >Release: FreeBSD 5.4 BETA1 (default kernal; no kernel builds) >Organization: >Environment: FreeBSD 5.4 BETA1 (default kernal; no kernel builds) The tape unit is a: Seagate STT6401U2. dmesg lists the unit as: umass0: Seagate RSS Seagate DiskStor USB, rev 2.00/11.01, addr2 There was a 20/40 Certance tape cartridge in the drive for the test; not write protected. This unit is connected via USB2. >Description: If you try to write a second tape file to the tape no-rewind device after you have completed the first write, you will get the error messages listed below and you will not get a second tape file. % tar cvf /dev/nsa0 file ...works % tar cvf /dev/nsa0 file ...error, as below % tail -f /var/log/messages Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): WRITE FILEMARKS. CDB: 10 0 0 0 2 0 Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): SCSI Status: Check Condition Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:50,0 Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): Write append error Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): Retries Exhausted Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): failed to write terminating filemark(s) Jan 1 17:46:09 bayside kernel: (sa0:umass-sim0:0:0:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to clear this state. An 'mt -f /dev/nsa0 rewind' command "unfreezes" the tape for future operations. Also, an 'mt -f /dev/nsa0 weof' does not appear to create an EOF mark on the tape. >How-To-Repeat: Issue two write commands to the '/dev/nsa0' device. E.g. two tar commands to the tape no-rewind device. % tar cvf /dev/nsa0 file ...works % tar cvf /dev/nsa0 file ...error >Fix: Probably, this is a device driver problem. It could be in the tape unit implementation. Check it out. >Release-Note: >Audit-Trail: >Unformatted: