Documentation
¶
Overview ¶
Package btrfs keeps all needed btrfs commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSnapshot ¶
CreateSnapshot creates a new snapshot.
func DeleteSnapshot ¶
DeleteSnapshot deletes existing snapshot by path. These here we use exec.Command because for some reason `btrfs.SubvolDelete` is waiting for the response and it looks not convenient from UI perspective.
func GetSubvolID ¶
func GetVolumeIDByPath ¶
func Restore ¶
Restore creates a new snapshot. The idea is not to just move snapshot data to subvolume (like @ or @home) but make a snapshot for it.
func SupportedByKernel ¶
SupportedByKernel checks if kernel supports btrfs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.