MCPcopy
hub / github.com/containerd/containerd / DetachLoopDevice

Function DetachLoopDevice

core/mount/losetup_linux.go:239–247  ·  view source on GitHub ↗

DetachLoopDevice detaches the provided loop devices

(devices ...string)

Source from the content-addressed store, hash-verified

237
238// DetachLoopDevice detaches the provided loop devices
239func DetachLoopDevice(devices ...string) error {
240 for _, dev := range devices {
241 if err := removeLoop(dev); err != nil {
242 return fmt.Errorf("failed to remove loop device: %s: %w", dev, err)
243 }
244 }
245
246 return nil
247}

Callers 7

TestDMVerityFunction · 0.92
TestFsmountLoopDeviceFunction · 0.92
createSnapshotterFunction · 0.92
TestPoolDeviceFunction · 0.92
TestDMSetupFunction · 0.92

Calls 1

removeLoopFunction · 0.85

Tested by 7

TestDMVerityFunction · 0.74
TestFsmountLoopDeviceFunction · 0.74
createSnapshotterFunction · 0.74
TestPoolDeviceFunction · 0.74
TestDMSetupFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…