MCPcopy Index your code
hub / github.com/containerd/containerd / NewWalkingDiff

Function NewWalkingDiff

plugins/diff/walking/differ.go:54–58  ·  view source on GitHub ↗

NewWalkingDiff is a generic implementation of diff.Comparer. The diff is calculated by mounting both the upper and lower mount sets and walking the mounted directories concurrently. Changes are calculated by comparing files against each other or by comparing file existence between directories. NewW

(store content.Store)

Source from the content-addressed store, hash-verified

52// NewWalkingDiff uses no special characteristics of the mount sets and is
53// expected to work with any filesystem.
54func NewWalkingDiff(store content.Store) diff.Comparer {
55 return &walkingDiff{
56 store: store,
57 }
58}
59
60// Compare creates a diff between the given mounts and uploads the result
61// to the content store.

Callers 2

FuzzDiffCompareFunction · 0.92
initFunction · 0.92

Calls

no outgoing calls

Tested by 1

FuzzDiffCompareFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…