Documentation
¶
Overview ¶
Package loopdev provides a thin wrapper around Linux loop device ioctls, using golang.org/x/sys/unix instead of external dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attacher ¶
type Attacher struct {
// contains filtered or unexported fields
}
Attacher implements iface.LoopAttacher using Linux ioctls.
func NewAttacher ¶
func NewAttacher() *Attacher
NewAttacher returns an Attacher using real system calls.
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device represents an attached loop device, implementing iface.LoopDevice.
func (*Device) Detach ¶
Detach removes the association between the loop device and its backing file.
func (*Device) SetAutoclear ¶
SetAutoclear sets the LO_FLAGS_AUTOCLEAR flag on the loop device so the kernel automatically detaches when the last reference is dropped.
Click to show internal directories.
Click to hide internal directories.