fmount

package
v0.24.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Dislocker functions.

FMount functions.

LoSetup functions.

LsBlk functions.

Kernel module functions.

Mount functions.

QEMU functions.

Umount functions.

Index

Constants

View Source
const (
	QemuDev   = "/dev/nbd1"
	QemuParts = 6
)
View Source
const (
	DislockerDev = "dislocker-file"
)
View Source
const (
	SymlinkPath = "/tmp/fmount"
)

Variables

View Source
var (
	MbrMagic = []byte{0x55, 0xAA}
)

Functions

func BaseFile

func BaseFile(name string) string

func BlockDevs added in v0.22.0

func BlockDevs(img string) (nbds []string, err error)

func CreateDirf added in v0.19.0

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

func CreateImageMount added in v0.22.0

func CreateImageMount(img, mnt string) (dir string, err error)
func CreateImageSymlink(img, dev string) (err 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 FromFuse added in v0.22.0

func FromFuse(dev string) string

func IsBootable added in v0.22.0

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

func IsEncrypted

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

func IsLoaded added in v0.22.0

func IsLoaded(mod 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 LoopDevs added in v0.22.0

func LoopDevs(img string) (los []string, err error)

func LsBlk

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

func ModList added in v0.22.0

func ModList(mod string) (ls []string, err error)

func ModLoad added in v0.22.0

func ModLoad(args ...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 PartDevs added in v0.22.0

func PartDevs(dev string) (ps []string, err error)

func QemuAttach added in v0.22.0

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

func QemuDetach added in v0.22.0

func QemuDetach(dev 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