package loopback
import "github.com/dotcloud/docker/pkg/loopback"
Index ¶
- Variables
- func AttachLoopDevice(sparseName string) (loop *os.File, err error)
- func FindLoopDeviceFor(file *os.File) *os.File
- func SetCapacity(file *os.File) error
Variables ¶
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.
Deprecated: the loopback package is deprected and will be removed in the next release.
func FindLoopDeviceFor ¶
FindLoopDeviceFor returns a loopback device file for the specified file which is backing file of a loop back device.
Deprecated: the loopback package is deprected and will be removed in the next release.
func SetCapacity ¶
SetCapacity reloads the size for the loopback device.
Deprecated: the loopback package is deprected and will be removed in the next release.
Source Files ¶
attach_loopback.go loopback.go
- Version
- v25.0.2+incompatible
- Published
- Feb 1, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 52 seconds ago –
Tools for package owners.