Files
Tonis Tiigi 6e20be016d exporter: fix src error cleanup and resolution
Release the mount or temp dir in CreateFS on every error path. An invalid
src could previously leak a mount for each failed export, and failing
attestation steps had the same leak.

Pass src to fs.RootPath unmodified so symlinks are resolved before "..",
and stop trimming whitespace from the value. Keep the underlying error
when reporting src failures so errors.Is still matches.

Add tests for mount release, mode=delete and platform-split=false with
src, and make the src error assertions work on Windows. Note in the
README that older daemons ignore src.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-09-29 18:28:54 -07:00
..