package
3.12.12+incompatible
Repository: https://github.com/threefoldtech/zos.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.
# 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.