From: Michael Tremer Date: Tue, 23 Mar 2021 20:16:02 +0000 (+0000) Subject: snapshots: Compress them as fast as possible X-Git-Tag: 0.9.28~1285^2~482 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4bd6b2c664494d08e28f9d8768aead241ad1cff;p=pakfire.git snapshots: Compress them as fast as possible Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/snapshot.c b/src/libpakfire/snapshot.c index 0d5304385..7a82daa12 100644 --- a/src/libpakfire/snapshot.c +++ b/src/libpakfire/snapshot.c @@ -74,6 +74,14 @@ static struct archive* pakfire_snapshot_create_archive(Pakfire pakfire, FILE* f) goto ERROR; } + // Set compression level to fastest + r = archive_write_set_filter_option(a, NULL, "compression-level", "1"); + if (r) { + ERROR(pakfire, "Could not set Zstandard compression level: %s\n", + archive_error_string(a)); + goto ERROR; + } + // Write archive to file r = archive_write_open_FILE(a, f); if (r)