Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPartitionFound = errors.New("no partition found after partition creation")
Functions ¶
func CreatePartitionTable ¶
func FormatPartition ¶
partitionDevice - partition device, e.g. /dev/sda1
func GetDevicePath ¶
func ProbePartition ¶
inform the operating system about partition table changes
Types ¶
type Partition ¶
func AddPartition ¶
rootDevice - root device, e.g. /dev/sda
func GetPartitions ¶
path - device path, e.g. /dev/sda
Click to show internal directories.
Click to hide internal directories.