Documentation
¶
Index ¶
- Constants
- func CreateQuotaGroup(s *sys.System, path, qGroup string) error
- func CreateSnapshot(s *sys.System, path, base string, copyOnWrite bool) error
- func CreateSubvolume(s *sys.System, path string, copyOnWrite bool) error
- func DeleteSubvolume(s *sys.System, path string) error
- func EnableQuota(s *sys.System, path string) error
- func NoCopyOnWrite(s *sys.System, path string) error
- func SetBtrfsPartition(s *sys.System, path string) error
- func SetDefaultSubvolume(s *sys.System, path string) error
Constants ¶
const TopSubVol = "@"
Variables ¶
This section is empty.
Functions ¶
func CreateQuotaGroup ¶
CreateQuotaGroup creates the given quota group for the btrfs filesystem, path is usually the mountpoint of the btrfs filesystem
func CreateSnapshot ¶
CreateSnapshot creates a btrfs snapshot to the given path from the given base
func CreateSubvolume ¶
CreateSubvolume creates a btrfs subvolume to the given path
func DeleteSubvolume ¶
DeleteSubvolume removes the given subvolume. Before removing the subvolume it sets the RW property to ensure it can be deleted, if deletion fails the property change remains applied.
func EnableQuota ¶
EnableQuota enables btrfs quota the btrfs filesystem, path is usually the mountpoint of the btrfs filesystem
func NoCopyOnWrite ¶
NoCopyOnWrite disables copy on write to the given subvolume
func SetBtrfsPartition ¶
SetBtrfsPartition configures toplevel subvolume, enables quota sets the quota group 1/0, and defines the toplevel subvolume as the default subvolume. Path is the mountpoint of the btrfs filesystem.
Types ¶
This section is empty.