From cdf16dbde7fc475a1134de0de1d8ff7fd5bc2ac9 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Tue, 3 Dec 2024 03:51:57 +0000 Subject: [PATCH] fix: disable "advanced/incompatible" features for now Signed-off-by: Ramkumar Chinchani --- pkg/erofs/erofs.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg/erofs/erofs.go b/pkg/erofs/erofs.go index 191abae..e488013 100644 --- a/pkg/erofs/erofs.go +++ b/pkg/erofs/erofs.go @@ -79,13 +79,15 @@ func MakeErofs(tempdir string, rootfs string, eps *common.ExcludePaths, verity v args := []string{tmpErofs.Name(), rootfs} compression := LZ4HCCompression - zstdOk, parallelOk := mkerofsSupportsFeature() - if zstdOk { - args = append(args, "-z", "zstd") - compression = ZstdCompression - } - if parallelOk { - args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU())) + if false { // FIXME: following features are experimental, disabling for now + zstdOk, parallelOk := mkerofsSupportsFeature() + if zstdOk { + args = append(args, "-z", "zstd") + compression = ZstdCompression + } + if parallelOk { + args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU())) + } } if len(toExclude) != 0 { args = append(args, "--exclude-path", excludesFile)