MCPcopy
hub / github.com/containerd/containerd / copyMounts

Function copyMounts

core/mount/temp.go:128–132  ·  view source on GitHub ↗

copyMounts creates a copy of the original slice to allow for modification and not altering the original

(in []Mount)

Source from the content-addressed store, hash-verified

126
127// copyMounts creates a copy of the original slice to allow for modification and not altering the original
128func copyMounts(in []Mount) []Mount {
129 out := make([]Mount, len(in))
130 copy(out, in)
131 return out
132}
133
134// WithReadonlyTempMount mounts the provided mounts to a temp dir as readonly,
135// and pass the temp dir to f. The mounts are valid during the call to the f.

Callers 3

RemoveVolatileOptionFunction · 0.85
RemoveIDMapOptionFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…