static deltas: Process each part as soon as its done
authorAlexander Larsson <alexl@redhat.com>
Wed, 25 Oct 2017 20:32:02 +0000 (22:32 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 27 Oct 2017 21:49:26 +0000 (21:49 +0000)
commitde0e015908d50ffa64c50ef5aaf1e3e2df61e763
tree0c4b16edba8928d2e894860df7c772f5bc2ab35f
parentcbbd159a5dc66988cfccb7dbeaf1de68b177ff15
static deltas: Process each part as soon as its done

Directly when we allocate a new part we finish the old one,
writing the compressed data to a temporary file and generating
the delta header for it.

When all these are done we loop over them and collect the headers,
sizes and either copy the tempfile data into the inlined superblock
or link the tempfiles to disk with the proper names.

Closes: #1309
Approved by: cgwalters
src/libostree/ostree-repo-static-delta-compilation.c