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

Vincent Batts vbatts at redhat.com
Thu Aug 20 14:33:49 PDT 2015


https://github.com/systemd/systemd/pull/998 unless you want to bubble this
all the way up to the commandline.



On Tue, Aug 18, 2015 at 4:31 PM, Vincent Batts <vbatts at redhat.com> wrote:

>
>
> 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/20150820/9783910d/attachment.html>


More information about the systemd-devel mailing list