MCPcopy
hub / github.com/opencontainers/runc / unmount

Function unmount

libcontainer/mount_linux.go:212–223  ·  view source on GitHub ↗

unmount is a simple unix.Unmount wrapper.

(target string, flags int)

Source from the content-addressed store, hash-verified

210
211// unmount is a simple unix.Unmount wrapper.
212func unmount(target string, flags int) error {
213 err := unix.Unmount(target, flags)
214 if err != nil {
215 return &mountError{
216 op: "unmount",
217 target: target,
218 flags: uintptr(flags),
219 err: err,
220 }
221 }
222 return nil
223}
224
225// syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
226// Copy from https://cs.opensource.google/go/go/+/refs/tags/go1.20.7:src/os/file_posix.go;l=61-75

Callers 3

doTmpfsCopyUpFunction · 0.85
pivotRootFunction · 0.85
msMoveRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…