Loopback device
type Loopback struct { // File is the underlying sparse file File string // Device is /dev/loopX Device string // contains filtered or unexported fields }
func New(size int64) (*Loopback, error)
New creates a loopback device
func (l *Loopback) Close() error
Close detaches the device and removes the underlying file
func (l *Loopback) HardSize() (int64, error)
HardSize returns st_blocks * 512; see stat(2)
func (l *Loopback) SoftSize() (int64, error)
SoftSize returns st_size