Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNameTooLong is returned if the name is longer than the default 255 characters ErrorNameTooLong = errors.New("name length too long") )
Functions ¶
func BuildVersion ¶
func BuildVersion() string
BuildVersion returns the build version of libbtrfs, if available
func IsSubvolume ¶
IsSubvolume tests whether path `dirpath` is a btrfs subvolume
func LibVersion ¶
func LibVersion() int
LibVersion returns the library version of libbtrfs, if available
func SubvolCreate ¶
SubvolCreate creates a new btrfs subvolume, with dirpath being the root directory
func SubvolDelete ¶
SubvolDelete deletes the subvolume of `name` with `dirpath` as the root directory.
func SubvolSnapshot ¶
SubvolSnapshot creates a new btrfs subvolume snapshot. With `dirpath` being the root directory, make a snapshot of `srcdirpath`, with name `name`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.