From nobody@FreeBSD.org  Sat Nov 24 20:38:19 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C9D8837B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 24 Nov 2001 20:38:18 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fAP4cIR28977;
	Sat, 24 Nov 2001 20:38:18 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111250438.fAP4cIR28977@freefall.freebsd.org>
Date: Sat, 24 Nov 2001 20:38:18 -0800 (PST)
From: Mark Hannon <markhannon@optushome.com.au>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dump creates a dump file much larger than sum of dumped files
X-Send-Pr-Version: www-1.0

>Number:         32261
>Category:       bin
>Synopsis:       dump creates a dump file much larger than sum of dumped files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 24 20:40:01 PST 2001
>Closed-Date:    Sun Jun 08 11:02:15 PDT 2003
>Last-Modified:  Sun Jun 08 11:02:15 PDT 2003
>Originator:     Mark Hannon
>Release:        4.4-RELEASE
>Organization:
>Environment:
FreeBSD doorway.home.lan 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Oct  7 12:59:46 EST 2001     mark@tbird-fe1.home.lan:/site/arch/FreeBSD-i386/usr/src/sys/compile/DOORWAY_IPFW  i386

>Description:
An incremental dump of some filesystems generates dump files
that are much larger than the sum of their dumped files.  I 
wrote a small perl script to check and got the following
results:

doorway:~/proj/dumpsize> sudo ./dumpsize.pl /export /var/dumps/export9-part1
Level 9 dump of /export on doorway.home.lan:/dev/ad0s1h
Label: none
The level 0 dump of /export partition written to /var/dumps/export9-part1
contains 717 files totalling 28006 KB, cf size of dumpfile = 0 ( 104660 )

doorway:~/proj/dumpsize> ll /var/dumps/export9-part1
-rw-r--r--  1 root  wheel  107171840 Nov 25 05:13 /var/dumps/export9-part1

The size of the dumped files totals 28 MB whilst the dump file is 105MB.

Any ideas as to what the rest of the file contains?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:

From: Mark Hannon <markhannon@optushome.com.au>
To: freebsd-gnats-submit@FreeBSD.org, markhannon@optushome.com.au
Cc:  
Subject: Re: bin/32261: dump creates a dump file much larger than sum of dumped 
 files
Date: Sun, 02 Dec 2001 20:15:53 +1100

 The problem seems to go away if I manually delete any existing dump
 files with the same
 name as the new dump prior to making a new dump. ie. the total filesize
 of a file, usr9
 (ie the level 9 dump of /usr that is written every night) never gets any
 smaller.
 
 Any ideas of what this might be?  (I have changed my backup script to
 unlink the old file
 before starting a new dump now and it seems to work)
 
 /mark
State-Changed-From-To: open->feedback 
State-Changed-By: cjc 
State-Changed-When: Sat Jul 13 15:09:09 PDT 2002 
State-Changed-Why:  
Can you reproduce this in more recent releases? I seem to recall 
discussion about fixing a bug that sounded similar to this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32261 
State-Changed-From-To: feedback->closed 
State-Changed-By: ceri 
State-Changed-When: Sun Jun 8 11:02:13 PDT 2003 
State-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 


Responsible-Changed-From-To: freebsd-bugs->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Sun Jun 8 11:02:13 PDT 2003 
Responsible-Changed-Why:  
Feedback timeout (6 months or more). 
I will handle any feedback that this closure generates. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=32261 
>Unformatted:
