MCPcopy
hub / github.com/containerd/containerd / UnmountAll

Function UnmountAll

core/mount/mount_windows.go:171–181  ·  view source on GitHub ↗

UnmountAll unmounts from the provided path

(mount string, flags int)

Source from the content-addressed store, hash-verified

169
170// UnmountAll unmounts from the provided path
171func UnmountAll(mount string, flags int) error {
172 if mount == "" {
173 // This isn't an error, per the EINVAL handling in the Linux version
174 return nil
175 }
176 if _, err := os.Stat(mount); os.IsNotExist(err) {
177 return nil
178 }
179
180 return Unmount(mount, flags)
181}
182
183// UnmountRecursive unmounts from the provided path
184func UnmountRecursive(mount string, flags int) error {

Callers 15

setupMountFunction · 0.92
unmountCtxFunction · 0.92
UnmountFunction · 0.92
cleanupImageMountsMethod · 0.92
CRImportCheckpointMethod · 0.92
unmountRecursiveFunction · 0.92
unmountRecursiveFunction · 0.92
unmount.goFile · 0.92
boltSnapshotterFunction · 0.92
TestMultipleXfsMountsFunction · 0.92
testMountFunction · 0.92
testViewHookFunction · 0.92

Calls 2

UnmountFunction · 0.70
StatMethod · 0.65

Tested by 6

setupMountFunction · 0.74
boltSnapshotterFunction · 0.74
TestMultipleXfsMountsFunction · 0.74
testMountFunction · 0.74
testViewHookFunction · 0.74
testMountFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…