From owner-freebsd-scsi@FreeBSD.ORG Tue Jun 3 07:52:17 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 6771437B401 for ; Tue, 3 Jun 2003 07:52:17 -0700 (PDT) Received: from aslan.scsiguy.com (mail.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5159243F85 for ; Tue, 3 Jun 2003 07:52:16 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.8/8.12.8) with ESMTP id h53EpxIh033249; Tue, 3 Jun 2003 08:51:59 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Tue, 03 Jun 2003 08:51:59 -0600 From: "Justin T. Gibbs" To: Kern Sibbald , mjacob@feral.com Message-ID: <3490610000.1054651919@aslan.scsiguy.com> In-Reply-To: <1054645616.13630.161.camel@rufus> References: <3EDB31AB.16420.C8964B7D@localhost> <3EDB59A4.27599.C93270FB@localhost> <20030602110836.H71034@beppo> <20030602131225.F71034@beppo> <1054645616.13630.161.camel@rufus> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 14:52:17 -0000 > Hello, > > Dan has now re-run our test of writing to two tapes. In > this test, he told Bacula not to attempt to re-read the > last block written, so Bacula wrote until -1 with errno=ENOSPC > was returned, wrote two EOF marks then put up > the next volume. Bacula is supposed to start the process of a tape change as soon as the amount written is less than what you intended to write. Ignoring the short write and waiting until you hit ENOSPC guarantees you will hit PEOM, since the LEOM is only reported once. The tape driver expects that you know what you are doing if you go on writing. -- Justin