package
0.1.1
Repository: https://github.com/threefoldtech/zos4.git
Documentation: pkg.go.dev

# Functions

All is default filter.
BindMount remounts an existing directory in a given target using the mount syscall with the BIND flag set.
DefaultDeviceManager returns a default device manager implementation.
FilesUsage return the total size of files under path (recursively) in bytes.
GetMountTarget returns the mount target of a device or false if the device is not mounted.
IsMountPoint checks if a path is a mount point.
NewBtrfsPool creates a btrfs pool associated with device.
NewUtils create a new BtrfsUtil object.
Partprobe runs partprobe.

# Constants

BtrfsFSType btrfs filesystem type.
No description provided by the author

# Variables

ErrDeviceAlreadyMounted indicates that a mounted device is attempted to be mounted again (without MS_BIND flag).
ErrDeviceNotMounted is returned when an action is performed on a device which requires the device to be mounted, while it is not.

# Structs

Btrfs holds metadata of underlying btrfs filesystem.
BtrfsDevice holds metadata about a single device in a btrfs filesystem.
BtrfsDiskUsage is parsed information form btrfs fi df.
BtrfsQGroup is parsed btrfs qgroup information.
BtrfsUtil utils for btrfs.
BtrfsVolume holds metadata about a single subvolume.
DeviceInfo contains information about the device.
DiskUsage is parsed information from a btrfs fi df line.
Usage struct (in bytes).

# Interfaces

DeviceManager is able to list all/specific devices on a system.
Pool represents a created filesystem.
Volume represents a logical volume in the pool.

# Type aliases

Devices represents a list of cached in memory devices.
Filter closure for Filesystem list.
FSType type of filesystem on device.