summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-27 01:05:40 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-27 01:05:40 -0500
commit0891be9c1b318adb1f40f3fc51bccb706eda1fe0 (patch)
treefa785f051b6e461e74406a187bc1a4e61a1f7b42
parent091f25de6945e70d86b7ef48a6bc036c32dc7a7b (diff)
downloadhorizon-0891be9c1b318adb1f40f3fc51bccb706eda1fe0.tar.gz
horizon-0891be9c1b318adb1f40f3fc51bccb706eda1fe0.tar.bz2
horizon-0891be9c1b318adb1f40f3fc51bccb706eda1fe0.tar.xz
horizon-0891be9c1b318adb1f40f3fc51bccb706eda1fe0.zip
image: Tar backend: Enable xz threading support
This should enable tarballs to be created significantly faster on systems with more than one processor.
-rw-r--r--image/backends/tar.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/image/backends/tar.cc b/image/backends/tar.cc
index d9c2248..b05f4a5 100644
--- a/image/backends/tar.cc
+++ b/image/backends/tar.cc
@@ -64,6 +64,11 @@ public:
break;
case XZ:
archive_write_add_filter_xz(a);
+ res = archive_write_set_filter_option(a, "xz", "threads", "0");
+ if(res < ARCHIVE_OK) {
+ output_warning("tar backend", "could not enable xz threading",
+ archive_error_string(a));
+ }
break;
}