Back to

Package btrfs

Latest Go to latest

The latest major version is .

Published: Nov 8, 2017 | License: Apache-2.0 | Module:



const (
	BtrfsType = 0x9123683E

type Driver

type Driver struct {
	// contains filtered or unexported fields

func NewDriver

func NewDriver(btrfsBinPath, mkfsBinPath, draxBinPath, storePath string) *Driver

func (*Driver) ConfigureStore

func (d *Driver) ConfigureStore(logger lager.Logger, storePath string, ownerUID, ownerGID int) error

func (*Driver) CreateImage

func (d *Driver) CreateImage(logger lager.Logger, spec image_cloner.ImageDriverSpec) (groot.MountInfo, error)

func (*Driver) CreateVolume

func (d *Driver) CreateVolume(logger lager.Logger, parentID, id string) (string, error)

func (*Driver) DestroyImage

func (d *Driver) DestroyImage(logger lager.Logger, imagePath string) error

func (*Driver) DestroyVolume

func (d *Driver) DestroyVolume(logger lager.Logger, id string) error

func (*Driver) FetchStats

func (d *Driver) FetchStats(logger lager.Logger, imagePath string) (groot.VolumeStats, error)

func (*Driver) HandleOpaqueWhiteouts

func (d *Driver) HandleOpaqueWhiteouts(logger lager.Logger, id string, opaqueWhiteouts []string) error

func (*Driver) InitFilesystem

func (d *Driver) InitFilesystem(logger lager.Logger, filesystemPath, storePath string) error

func (*Driver) Marshal

func (d *Driver) Marshal(logger lager.Logger) ([]byte, error)

func (*Driver) MoveVolume

func (d *Driver) MoveVolume(logger lager.Logger, from, to string) error

func (*Driver) ValidateFileSystem

func (d *Driver) ValidateFileSystem(logger lager.Logger, path string) error

func (*Driver) VolumePath

func (d *Driver) VolumePath(logger lager.Logger, id string) (string, error)

func (*Driver) VolumeSize

func (d *Driver) VolumeSize(logger lager.Logger, id string) (int64, error)

func (*Driver) Volumes

func (d *Driver) Volumes(logger lager.Logger) ([]string, error)

func (*Driver) WriteVolumeMeta

func (d *Driver) WriteVolumeMeta(logger lager.Logger, id string, metadata base_image_puller.VolumeMeta) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier