Adding remove file option to BSD tar?

Tim Kientzle kientzle at freebsd.org
Wed Aug 9 02:46:03 UTC 2006


Steven Hartland wrote:
> What do people think about adding an equivalent to
> gtars --remove-files?

Shouldn't be too tricky.  If you think you know
how to implement it, send me the diffs.

Doing this "safely" is nearly impossible, of
course.  In the compressed case, the compression
pipeline buffers a LOT of data (bzip2 analyzes 900k
blocks at a time).  But even in the
uncompressed case, archive blocking means that
you CANNOT flush the archive after every file.
A "safe" implementation would have to defer
the actual deletion for a long time.   Even
without that, though, this is the sort of
feature that many people would no doubt find
useful.

Tim Kientzle


More information about the freebsd-hackers mailing list