From ac4309657b0eb7fab1b5d2ca3cb14a720318b3f1 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 16 Oct 2024 17:05:33 +0200 Subject: [PATCH] erofs: use multithreading in mkfs when possible --- modules/partitions.nix | 5 +++-- overlays/default.nix | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/partitions.nix b/modules/partitions.nix index fa1fe5c..13aa6de 100644 --- a/modules/partitions.nix +++ b/modules/partitions.nix @@ -21,9 +21,10 @@ mkfsOptions = { erofs = [ - # "-zzstd,6" # Zstd compression + "-zzstd,6" # Zstd compression "-T0" # Fixed timestamp for all files - "-Efragments,dedupe,ztailpacking" # Extended options + "-C65536" # 64 KiB cluster size + # "-Efragments,dedupe,ztailpacking" # Extra features ]; }; diff --git a/overlays/default.nix b/overlays/default.nix index 0ef9a38..b84ffbb 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -3,6 +3,7 @@ final: prev: { erofs-utils = prev.erofs-utils.overrideAttrs (old: { buildInputs = old.buildInputs ++ [ prev.zstd ]; configureFlags = old.configureFlags ++ [ + "--enable-multithreading" "--enable-zstd" ]; });