Skip to content

Commit

Permalink
fix: disable "advanced/incompatible" features for now
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Dec 3, 2024
1 parent 1e137e2 commit 3f43516
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkg/erofs/erofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"os/exec"
"path"
"path/filepath"
"runtime"
"strings"
"sync"
"syscall"
Expand Down Expand Up @@ -79,14 +78,16 @@ 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()))
}
/*
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)
}

Check warning on line 93 in pkg/erofs/erofs.go

View check run for this annotation

Codecov / codecov/patch

pkg/erofs/erofs.go#L92-L93

Added lines #L92 - L93 were not covered by tests
Expand Down

0 comments on commit 3f43516

Please sign in to comment.