zfs

package
v0.0.0-...-0f43fba Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FindLoopBackFromZpoolCmd = "zpool list -v %s | grep '^  loop' | awk '{print $1}'"
)

Variables

This section is empty.

Functions

func CreateSparseFile

func CreateSparseFile(imgPath string, sizeInMb int64) error

func EmptyDataset

func EmptyDataset(pool model.ZfsPool, branchName string) error

func FindDevicePath

func FindDevicePath(poolName string) (string, error)

func FindLoopDeviceFromSys

func FindLoopDeviceFromSys(targetFile string) ([]string, error)

func MountAll

func MountAll(ctx context.Context) error

func ReleaseLoopDevice

func ReleaseLoopDevice(loopDevice string) error

func SetupLoopDevice

func SetupLoopDevice(imgFilePath string) (int, error)

func Unmount

func Unmount(pool model.ZfsPool) error

func UnmountAll

func UnmountAll() error

func Version

func Version() (*string, bool)

func VirtualPool

func VirtualPool(ctx context.Context, repoinit repo.Info) (model.ZfsPool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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