Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Dec 2, 2024
1 parent 5208a46 commit 544cee4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/erofs/erofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ func MakeErofs(tempdir string, rootfs string, eps *common.ExcludePaths, verity v

args := []string{tmpErofs.Name(), rootfs}
compression := LZ4HCCompression
// NOTE: both zstd and parallel support is experimental, skipping for now
_, parallelOk := mkerofsSupportsFeature()
zstdOk, parallelOk := mkerofsSupportsFeature()
if zstdOk && false { // NOTE: zstd support is experimental, skipping for now
args = append(args, "-z", "zstd")
compression = ZstdCompression
}

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

View check run for this annotation

Codecov / codecov/patch

pkg/erofs/erofs.go#L84-L86

Added lines #L84 - L86 were not covered by tests
if parallelOk {
args = append(args, "--workers", fmt.Sprintf("%d", runtime.NumCPU()))
}

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

View check run for this annotation

Codecov / codecov/patch

pkg/erofs/erofs.go#L88-L89

Added lines #L88 - L89 were not covered by tests
Expand Down

0 comments on commit 544cee4

Please sign in to comment.