probe

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileSystem

func FileSystem(path string) (sb filesystem.SuperBlocker, err error)

FileSystem probes the provided path's file system.

Types

type ProbedBlockDevice

type ProbedBlockDevice struct {
	*blockdevice.BlockDevice

	SuperBlock filesystem.SuperBlocker
	Path       string
}

ProbedBlockDevice represents a probed block device.

func All

func All() (all []*ProbedBlockDevice, err error)

All probes a block device's file system for the given label.

func DevForFileSystemLabel

func DevForFileSystemLabel(devpath, value string) (probe *ProbedBlockDevice, err error)

DevForFileSystemLabel probes a block device's file systems for the given label.

func GetDevWithFileSystemLabel

func GetDevWithFileSystemLabel(value string) (probe *ProbedBlockDevice, err error)

GetDevWithFileSystemLabel probes all known block device's file systems for the given label.

Jump to

Keyboard shortcuts

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