[systemd-devel] use-case for sparse tar archives

Vincent Batts vbatts at redhat.com
Tue Aug 18 13:31:19 PDT 2015


On Tue, Aug 18, 2015 at 12:29 PM, Lennart Poettering <lennart at poettering.net
> wrote:

> On Tue, 18.08.15 12:07, Vincent Batts (vbatts at redhat.com) wrote:
>
> > Before submitting a change for this, why is the creation of tar's using
> > `--sparse`?
> >
> https://github.com/systemd/systemd/blob/master/src/import/import-common.c#L213
>
> If you save/restore/migrate disk trees that include sparse files like
> utmp/wtmp or journal files it sounds like a good idea to keep them
> sparse.
>
> Why would you not do this?
>
> Lennart
>
>
It makes reassembling the pristine tar archive almost impossible.
https://github.com/vbatts/tar-split is a project of mine to reassemble
cryptographically verifiable archives. It's merged into docker now, but i'm
looking to investigate portability of containers as it relates to nspawn
and machinectl import.

vb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150818/162c1b62/attachment.html>


More information about the systemd-devel mailing list