From owner-freebsd-bugs Wed Jun 27 4:40: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8797C37B405 for ; Wed, 27 Jun 2001 04:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5RBe2c88954; Wed, 27 Jun 2001 04:40:02 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B7BB37B406 for ; Wed, 27 Jun 2001 04:31:50 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5RBVoM88201; Wed, 27 Jun 2001 04:31:50 -0700 (PDT) (envelope-from nobody) Message-Id: <200106271131.f5RBVoM88201@freefall.freebsd.org> Date: Wed, 27 Jun 2001 04:31:50 -0700 (PDT) From: Rich Brennan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/28447: GNU tar silently fails on large files (> 4 gig?) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28447 >Category: bin >Synopsis: GNU tar silently fails on large files (> 4 gig?) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jun 27 04:40:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Rich Brennan >Release: 4.2-Release >Organization: Connactivity >Environment: [backup:root]22% uname -a FreeBSD backup.connactivity.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Description: I was using /usr/bin/tar to write a directory full of files written by dump onto tape, and dd reported much less data written than was proper. The BIG problem is that no error is flagged -- I thought I was making a backup tape I could take offsite for safety, but nearly all of my data was missing from the tape! pax seems to handle the file. >How-To-Repeat: [backup:root]19% ls -l total 9117867 drwxr-xr-x 2 admin staff 512 Jun 25 06:26 1 drwxr-xr-x 2 admin staff 512 Jun 26 06:34 2 drwxr-xr-x 2 admin staff 512 Jun 27 07:13 3 -rw-r--r-- 1 admin staff 4431093760 Jun 24 04:11 home.dump -rw-r--r-- 1 admin staff 66836480 Jun 24 05:52 root.dump -rw-r--r-- 1 admin staff 1869967360 Jun 24 05:37 usr.dump -rw-r--r-- 1 admin staff 2245253120 Jun 24 05:02 var.dump -rw-r--r-- 1 admin staff 718919680 Jun 24 05:51 var.mail.dump [backup:root]20% tar --version GNU tar version 1.11.2 [backup:root]21% tar -cvf - home.dump | dd of=/dev/null bs=512k home.dump 0+13294 records in 0+13294 records out 136130560 bytes transferred in 0.938017 secs (145125897 bytes/sec) [backup:root]22% uname -a FreeBSD backup.connactivity.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC i386 >Fix: Just discovered. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message