package losetup
import "github.com/containerd/containerd/snapshots/devmapper/losetup"
Index ¶
- func AttachLoopDevice(imagePath string) (string, error)
- func DetachLoopDevice(loopDevice ...string) error
- func FindAssociatedLoopDevices(imagePath string) ([]string, error)
- func RemoveLoopDevicesAssociatedWithImage(imagePath string) error
Functions ¶
func AttachLoopDevice ¶
AttachLoopDevice finds first available loop device and associates it with an image.
func DetachLoopDevice ¶
DetachLoopDevice detaches loop devices
func FindAssociatedLoopDevices ¶
FindAssociatedLoopDevices returns a list of loop devices attached to a given image
func RemoveLoopDevicesAssociatedWithImage ¶
RemoveLoopDevicesAssociatedWithImage detaches all loop devices attached to a given sparse image
Source Files ¶
- Version
- v1.4.3
- Published
- Nov 30, 2020
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 7 hours ago –
Tools for package owners.