fix --reuse being ignored when --no-optimize is set by wswsmao · Pull Request #2206 · containerd/stargz-snapshotter (original) (raw)

Description:
This PR fixes a bug where the optimize command fails to reuse existing eStargz layers if the --no-optimize flag is set.

Changes:

This significantly improves conversion efficiency in batch processing scenarios where users want to skip already converted layers without running the analyzer.