Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Apr 2004 15:06:09 -0700
From:      Tim Kientzle <tim@kientzle.com>
To:        Don Lewis <truckman@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: Amanda, bsdtar, and libarchive
Message-ID:  <408AE4D1.4060609@kientzle.com>
In-Reply-To: <200404242152.i3OLq87E057024@gw.catspoiler.org>
References:  <200404242152.i3OLq87E057024@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Don Lewis wrote:
> On 24 Apr, Tim Kientzle wrote:
> 
>>If you want reasonably accurate estimates without reading the
>>file data, you could ... build some sort of "size estimate" capability into
>>libarchive ...
> 
> There are three variations on the archive size estimate:
> 	Fast and exact
> 	Fast and approximate
> 	Slow and exact

You can already do the last one with libarchive;
just register an output function that counts the
bytes but doesn't do anything.  Done.

"Fast and exact" is simply not possible in general,
so I don't think I would bother with that option
at all.

Incorporating some sort of estimator into the API does
sound like a good idea.  I'll have to think about it
some to see if I can figure out a good way to do that.

Thanks for the feedback,

Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?408AE4D1.4060609>