]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
snapshots: Compress blocks of 256k at once
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Mar 2021 16:26:00 +0000 (16:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 25 Mar 2021 16:26:00 +0000 (16:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/snapshot.c

index d87d902716d24d655765768483ed33486b7dfa5b..005145d25774f604dcf7f692a3182317adf09a1d 100644 (file)
@@ -84,6 +84,9 @@ static struct archive* pakfire_snapshot_create_archive(Pakfire pakfire, FILE* f)
                goto ERROR;
        }
 
+       // Process bigger blocks
+       archive_write_set_bytes_per_block(a, 256 * 1024);
+
        // Do not pad the last block
        archive_write_set_bytes_in_last_block(a, 1);