Bug 28447

Summary: GNU tar silently fails on large files (> 4 gig?)
Product: Base System Reporter: Rich Brennan <brennan>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Rich Brennan 2001-06-27 12:40:01 UTC
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.

Fix: 

Just discovered.
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
Comment 1 Mark Stosberg 2001-09-26 21:24:12 UTC
This appears to be a duplicate of bug #28820

  -mark
Comment 2 Bruce A. Mah freebsd_committer freebsd_triage 2001-11-10 20:19:40 UTC
State Changed
From-To: open->closed

PR 28820 covers the same issue.  It looks like at least a little 
progress was made on analyzing that PR, so we'll close this PR as a 
duplicate.