MCPcopy
hub / github.com/containerd/containerd / remapRootFS

Function remapRootFS

client/container_opts_unix.go:121–125  ·  view source on GitHub ↗
(ctx context.Context, mounts []mount.Mount, idMap userns.IDMap)

Source from the content-addressed store, hash-verified

119}
120
121func remapRootFS(ctx context.Context, mounts []mount.Mount, idMap userns.IDMap) error {
122 return mount.WithTempMount(ctx, mounts, func(root string) error {
123 return filepath.Walk(root, chown(root, idMap))
124 })
125}
126
127func chown(root string, idMap userns.IDMap) filepath.WalkFunc {
128 return func(path string, info os.FileInfo, err error) error {

Callers 2

resolveSnapshotOptionsFunction · 0.85
withRemappedSnapshotBaseFunction · 0.85

Calls 3

WithTempMountFunction · 0.92
chownFunction · 0.85
WalkMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…