fmount

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Dislocker functions.

FMount functions.

LoSetup functions.

LsBlk functions.

Mount functions.

Umount functions.

Index

Constants

View Source
const (
	DislockerDev = "dislocker-file"
)
View Source
const (
	SymlinkPath = "/tmp/fmount"
)

Variables

This section is empty.

Functions

func BaseFile

func BaseFile(name string) string

func CreateDirf added in v0.19.0

func CreateDirf(root, m string, a ...any) (dir string, err error)

func CreateMount added in v0.19.0

func CreateMount(img, mnt string) error
func CreateSymlink(dev, mnt string) error

func Dev added in v0.19.0

func Dev(loop string) string

func DislockerFuse

func DislockerFuse(dev, key, dir string) (err error)

func DislockerInfo

func DislockerInfo(dev string) (ids []string, err error)
func FollowSymlink(dev string) (src string, err error)

func IsEncrypted

func IsEncrypted(dev string) (is bool, err error)

func LoSetupAttach

func LoSetupAttach(img string) (dev string, err error)

func LoSetupDetach

func LoSetupDetach(dev string) (err error)

func LoSetupList

func LoSetupList(img string) (ls []string, err error)

func Loops added in v0.19.0

func Loops(img string) (loops []string, err error)

func LsBlk

func LsBlk(dev, col string) (ls []string, err error)

func Mount

func Mount(dev, dir string, lo bool) (err error)

func Mounts added in v0.19.0

func Mounts(dev string) (mnts []string, err error)

func Parts

func Parts(dev string) (parts []string, err error)

func RemoveDirs

func RemoveDirs(dir string) (err error)
func RemoveSymlink(dev string) error

func UmountDev

func UmountDev(dev string) (err error)

func UmountDir

func UmountDir(dir string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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