package loopback
import "github.com/containerd/continuity/testutil/loopback"
Index ¶
Types ¶
type Loopback ¶
type Loopback struct { // File is the underlying sparse file File string // Device is /dev/loopX Device string // contains filtered or unexported fields }
Loopback device
func New ¶
New creates a loopback device
func (*Loopback) Close ¶
Close detaches the device and removes the underlying file
func (*Loopback) HardSize ¶
HardSize returns st_blocks * 512; see stat(2)
func (*Loopback) SoftSize ¶
SoftSize returns st_size
Source Files ¶
- Version
- v0.4.5 (latest)
- Published
- Oct 30, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 day ago –
Tools for package owners.