From nobody@FreeBSD.org Sun Jul 8 09:09:36 2001 Return-Path: Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A81C037B40F for ; Sun, 8 Jul 2001 09:09:27 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f68G9RQ53048; Sun, 8 Jul 2001 09:09:27 -0700 (PDT) (envelope-from nobody) Message-Id: <200107081609.f68G9RQ53048@freefall.freebsd.org> Date: Sun, 8 Jul 2001 09:09:27 -0700 (PDT) From: Andrew Webster To: freebsd-gnats-submit@FreeBSD.org Subject: tar and cpio cannot deal with files > 2GB X-Send-Pr-Version: www-1.0 >Number: 28820 >Category: bin >Synopsis: tar and cpio cannot deal with files > 2GB >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 08 09:10:01 PDT 2001 >Closed-Date: Sat Jun 01 17:39:56 PDT 2002 >Last-Modified: Sat Jun 01 17:39:56 PDT 2002 >Originator: Andrew Webster >Release: 4.3-RELEASE >Organization: PubNIX Inc. >Environment: FreeBSD testpc.fortress.org 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >Description: When attempting to tar a larger than 2GB file, tar immediately returns, having created 10240 byte file. tar tvf file.tar reveals that file size is inidcated as negative! >How-To-Repeat: Create >2gb file tar cvf file.tar 2gbfile.data tar tvf file.tar >Fix: Probably 32bit integers used inside tar & cpio when calculating filesizes. >Release-Note: >Audit-Trail: From: Andrew To: freebsd-gnats-submit@FreeBSD.org, andrew@fortress.org Cc: Subject: Re: bin/28820: tar and cpio cannot deal with files > 2GB Date: Sat, 04 Aug 2001 22:47:45 -0400 I have investigated TAR code in create.c. Problem is that counter is a 32 bit long (save_totsize) see line 198. Should be of type off_t to deal with numbers > 2,147,483,647 Probably similar problem with cpio. -- Andrew Responsible-Changed-From-To: freebsd-bugs->mjacob Responsible-Changed-By: mjacob Responsible-Changed-When: Mon Oct 1 21:52:52 PDT 2001 Responsible-Changed-Why: I'll take it. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28820 Responsible-Changed-From-To: mjacob->freebsd-bugs Responsible-Changed-By: mjacob Responsible-Changed-When: Sat Oct 20 18:34:17 PDT 2001 Responsible-Changed-Why: give back to whomever has more time to do the actual right thing http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28820 From: Marc Perisa To: freebsd-gnats-submit@FreeBSD.org Cc: andrew@fortress.org, mjacob@FreeBSD.org Subject: Re: bin/28820: tar and cpio cannot deal with files > 2GB Date: Wed, 29 May 2002 02:35:38 +0200 Please close this PR. It is better described at http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/24903 Thanks Marc State-Changed-From-To: open->closed State-Changed-By: cjc State-Changed-When: Sat Jun 1 17:37:58 PDT 2002 State-Changed-Why: Several other PRs deal with this same problem, e.g. 24903. >Unformatted: