Documentation ¶
Overview ¶
Package loopback provides support for disk loopback devices (/dev/loopN).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Loop ¶
Loop given a handle to a Loopback device (such as /dev/loop0), and a handle to the image to loop mount (such as a squashfs or ext4fs image), performs the required call to loop the image to the provided block device.
func LoopSetReadWrite ¶
LoopSetReadWrite clears the read-only flag on the loop devices.
func NextLoopDevice ¶
NextLoopDevice gets the next loopback device that isn't used.
Under the hood this will ask loop-control for the LOOP_CTL_GET_FREE value, and interpolate that into the conventional GNU/Linux naming scheme for loopback devices, and os.Open that path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.