Documentation ¶
Index ¶
- Constants
- func IsBtrfsFilesystem(thePath string) error
- type BtrfsConn
- func (c *BtrfsConn) Export(label, parent, outfile string) error
- func (c *BtrfsConn) Import(label, infile string) error
- func (c *BtrfsConn) Name() string
- func (c *BtrfsConn) Path() string
- func (c *BtrfsConn) RemoveSnapshot(label string) error
- func (c *BtrfsConn) Rollback(label string) error
- func (c *BtrfsConn) Snapshot(label string) error
- func (c *BtrfsConn) SnapshotPath(label string) string
- func (c *BtrfsConn) Snapshots() ([]string, error)
- func (c *BtrfsConn) Unmount() error
- type BtrfsDriver
Constants ¶
View Source
const (
// DriverName is the name of this btrfs driver implementation
DriverName = "btrfs"
)
Variables ¶
This section is empty.
Functions ¶
func IsBtrfsFilesystem ¶
IsBtrfsFilesystem determines whether the path is a btrfs filesystem
Types ¶
type BtrfsConn ¶
BtrfsConn is a connection to a btrfs volume
func (*BtrfsConn) RemoveSnapshot ¶
RemoveSnapshot removes the snapshot with the given label
func (*BtrfsConn) SnapshotPath ¶
type BtrfsDriver ¶
BtrfsDriver is a driver for the btrfs volume
func (*BtrfsDriver) List ¶
func (d *BtrfsDriver) List(rootDir string) (result []string)
List returns a list of btrfs subvolumes at a given root dir
Click to show internal directories.
Click to hide internal directories.