MCPcopy
hub / github.com/containerd/containerd / doMount

Function doMount

plugins/mount/erofs/plugin_linux.go:223–233  ·  view source on GitHub ↗
(m mount.Mount, target string)

Source from the content-addressed store, hash-verified

221}
222
223func doMount(m mount.Mount, target string) error {
224 if err := fsmount.Fsmount(m, target); err != nil {
225 // Fall back to traditional mount() if fsmount syscall not available (Linux < 5.2)
226 if errors.Is(err, unix.ENOSYS) {
227 log.L.WithError(err).Debug("fsmount not available, falling back to traditional mount")
228 return m.Mount(target)
229 }
230 return err
231 }
232 return nil
233}
234
235func (h *erofsMountHandler) Unmount(ctx context.Context, path string) error {
236 // Check what's currently mounted to determine if dm-verity device cleanup is needed

Callers 1

MountMethod · 0.85

Calls 2

FsmountFunction · 0.92
MountMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…