losetup

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resize

func Resize(name string) error

func TruncateFile

func TruncateFile(path string, size int64) error

func WithAssociatedFile

func WithAssociatedFile(file string) option

Types

type LoopDevice

type LoopDevice struct {
	Name      string `json:"name"`
	Sizelimit string `json:"sizelimit"`
	Offset    string `json:"offset"`
	Autoclear string `json:"autoclear"`
	RO        string `json:"ro"`
	BackFile  string `json:"back-file"`
	Dio       string `json:"dio"`
	LogSec    string `json:"log-sec"`
}

func List

func List(opts ...option) ([]LoopDevice, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL