dmsetup

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDMSetup       = "/usr/sbin/dmsetup"
	ErrReferenceNotFound = errors.New("device-mapper reference not found")
)

Functions

This section is empty.

Types

type Dmsetup

type Dmsetup interface {
	Remove(ctx context.Context, deviceName string) error
}

type HostDmsetup

type HostDmsetup struct {
	vgmanagerexec.Executor
	// contains filtered or unexported fields
}

func NewDefaultHostDmsetup

func NewDefaultHostDmsetup() *HostDmsetup

func NewHostDmsetup

func NewHostDmsetup(executor vgmanagerexec.Executor, dmsetup string) *HostDmsetup

func (*HostDmsetup) Remove

func (dmsetup *HostDmsetup) Remove(ctx context.Context, deviceName string) error

Remove removes the device's reference from the device-mapper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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