From owner-freebsd-current@FreeBSD.ORG Sat Oct 2 21:34:29 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E5BE16A4CF; Sat, 2 Oct 2004 21:34:29 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D47A43D39; Sat, 2 Oct 2004 21:34:28 +0000 (GMT) (envelope-from tim@kientzle.com) Received: from kientzle.com (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id i92LYP90054944; Sat, 2 Oct 2004 14:34:26 -0700 (PDT) (envelope-from tim@kientzle.com) Message-ID: <415F1EE1.1080106@kientzle.com> Date: Sat, 02 Oct 2004 14:34:25 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Lehmann References: <20040923062411.7b5a70d7.lehmann@ans-netz.de> <4152EAA5.30807@freebsd.org> <20040923190219.176a5848.lehmann@ans-netz.de> <4155FBBE.7090806@freebsd.org> <20041002114847.79c74818.lehmann@ans-netz.de> In-Reply-To: <20041002114847.79c74818.lehmann@ans-netz.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Tim Kientzle cc: freebsd-current@freebsd.org Subject: Re: bsdtar doesn't detect end of tape X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Oct 2004 21:34:29 -0000 Oliver Lehmann wrote: > Tim Kientzle wrote: > >>Ergh. I haven't managed to reproduce >>this here yet; I'll keep trying. > > ok, I checked out the latest version of libarchive and tar (CURRENT) and > compiled them. Still the same problem - I can tar more than the tape can > hold (I tared all files of a filelist for a dds3 tape on a dds2 tape). > I got no error. I've tried it against a floppy and the write does fail, though there are a few ugly points in there. Hmm... I wonder if the tape device driver you're using doesn't consistently return an error for a write past end-of-media? I did find a couple of places where failed writes were getting ignored, but if the device keeps returning failure, then bsdtar does eventually get the hint. I'll have a revised patch for you to try soon. (Let me know when you get back from vacation.) Thanks for your help, Tim