Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAttachLoopbackDevice = errors.New("loopback attach failed") ErrGetLoopbackBackingFile = errors.New("unable to get loopback backing file") ErrSetCapacity = errors.New("unable set loopback capacity") )
Loopback related errors
Functions ¶
func AttachLoopDevice ¶
AttachLoopDevice attaches the given sparse file to the next available loopback device. It returns an opened *os.File.
func FindLoopDeviceFor ¶
FindLoopDeviceFor returns a loopback device file for the specified file which is backing file of a loop back device.
func SetCapacity ¶
SetCapacity reloads the size for the loopback device.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.