From owner-freebsd-scsi@FreeBSD.ORG Tue Jun 3 11:17:03 2003 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0395337B401 for ; Tue, 3 Jun 2003 11:17:03 -0700 (PDT) Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42D9E43F93 for ; Tue, 3 Jun 2003 11:17:02 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from wonky.in0.lcl (wonky.in0.lcl [172.16.166.7]) by beppo.feral.com (8.12.9/8.12.9) with ESMTP id h53IH0qw047210; Tue, 3 Jun 2003 11:17:00 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Tue, 3 Jun 2003 11:17:00 -0700 (PDT) From: Matthew Jacob X-X-Sender: mjacob@wonky.in0.lcl To: Kern Sibbald In-Reply-To: <20030603103611.R24586@wonky.in0.lcl> Message-ID: <20030603111000.V24586@wonky.in0.lcl> References: <3EDB31AB.16420.C8964B7D@localhost> <3EDB59A4.27599.C93270FB@localhost> <577540000.1054579840@aslan.btc.adaptec.com> <20030602131225.F71034@beppo> <1054645616.13630.161.camel@rufus> <1054653106.13606.217.camel@rufus><1054661668.13606.292.camel@rufus> <20030603103611.R24586@wonky.in0.lcl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-scsi@freebsd.org Subject: Re: SCSI tape data loss X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mjacob@feral.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 18:17:03 -0000 > > write() > > ... > > write() > > ioctl(MTEOF) > > ioctl(MTEOF) > > ioctl(MTREW) > > I'm going to have to look at the actual full bacula source (the URL that Dan sent me I can't get at). I modified tape_pattern_tester to take another argument ('-E N'), which specifies the number of filemarks to use to close off a tape at the end, and just rewind (rather than use close(2) and let the tape driver write the 'correct' number of marks), and start reading. tape_pattern_tester -v -b 64512 -E 2 -n 1 -f /dev/nrsa0 .......Rewind Tape ........Write Pass ...Writing 2 FMKs WEOT at File 0 Record 1000 Offset 64512 (64512000 total bytes written) Elapsed Seconds: 52; Data Rate: 1.17308MB/s .......Rewind Tape .........Read Pass REOT at File 1 Record 0 Offset 0 (64512000 total bytes read) Elapsed Seconds: 57: Data Rate: 1.07018MB/s