From owner-freebsd-current Mon Aug 16 13:35:43 1999 Delivered-To: freebsd-current@freebsd.org Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by hub.freebsd.org (Postfix) with ESMTP id 6C7EA14D1A for ; Mon, 16 Aug 1999 13:35:41 -0700 (PDT) (envelope-from wolman@cs.washington.edu) Received: from miles.cs.washington.edu (miles.cs.washington.edu [128.95.4.177]) by june.cs.washington.edu (8.8.7+CS/7.2ju) with ESMTP id NAA25485 for ; Mon, 16 Aug 1999 13:36:09 -0700 Received: from miles.cs.washington.edu (localhost [127.0.0.1]) by miles.cs.washington.edu (8.9.2/8.9.2) with ESMTP id NAA69812 for ; Mon, 16 Aug 1999 13:36:09 -0700 (PDT) (envelope-from wolman@miles.cs.washington.edu) Message-Id: <199908162036.NAA69812@miles.cs.washington.edu> X-Mailer: exmh version 2.0.2 2/24/98 To: freebsd-current@freebsd.org Subject: gnu tar upgrade? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Aug 1999 13:36:08 -0700 From: "Alec Wolman" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The version of tar that comes with freebsd (v1.11.2 with local freebsd modifications) has a bug: if you attempt to copy large files (> 2GB) it will silently truncate the large file. To reproduce this bug, simply use tar cf - | (cd ; tar xvpf -) where is a directory that contains a large file. There is a new version of gnu tar (v1.13) that has support for large files. I have tested this new version of tar on a recent snapshot of FreeBSD-STABLE (3.2-19990810), and it works fine with >2GB files. I also looked at the local modifications to the 1.11.2 version of tar, to understand how hard it would be to upgrade. FreeBSD has added the following behavior over the years: the --unlink option: tar 1.13 has equivalent functionality with --unlink-first the --norecurse option: tar 1.13 has equivalent functionality with --no-recursion the --bzip and --unbzip options: tar 1.13 has equivalent functionality with the --use-compress-program option the --fast-read option: tar 1.13 does not have equivalent functionality I looked at the implementation of fast-read, and it doesn't look too hard to adapt to the new version of tar. I could create patches if there is interest.... Alec To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message