mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 09:33:06 +00:00
Replace the snapshots.ErrAlreadyStaged sentinel error with a read-only-mounts signal: a snapshotter (e.g. erofs serving a layer content cache hit) now returns Prepare mounts normally, with no error, when the layer content is already staged into the active snapshot. The unpacker's isStaged helper checks the last mount's ReadOnly() to decide whether to skip fetch+apply and just commit. Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>