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 74caadb commit cdf16db
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pkg/erofs/erofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}

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

View check run for this annotation

Codecov / codecov/patch

pkg/erofs/erofs.go#L83-L90

Added lines #L83 - L90 were not covered by tests
}
if len(toExclude) != 0 {
args = append(args, "--exclude-path", excludesFile)
Expand Down

0 comments on commit cdf16db

Please sign in to comment.