DetachLoopDevice detaches the provided loop devices
(devices ...string)
| 237 | |
| 238 | // DetachLoopDevice detaches the provided loop devices |
| 239 | func 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 | } |
searching dependent graphs…