Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BtrFSDriver ¶
type BtrFSDriver struct {
// contains filtered or unexported fields
}
func NewBtrFSDriver ¶
func NewBtrFSDriver( logger lager.Logger, btrfsBin string, ) *BtrFSDriver
func (*BtrFSDriver) CreateCopyOnWriteLayer ¶
func (driver *BtrFSDriver) CreateCopyOnWriteLayer(path string, parent string) error
func (*BtrFSDriver) CreateVolume ¶
func (driver *BtrFSDriver) CreateVolume(path string) error
func (*BtrFSDriver) DestroyVolume ¶
func (driver *BtrFSDriver) DestroyVolume(path string) error
type NaiveDriver ¶
type NaiveDriver struct{}
func (*NaiveDriver) CreateCopyOnWriteLayer ¶
func (driver *NaiveDriver) CreateCopyOnWriteLayer(path string, parent string) error
func (*NaiveDriver) CreateVolume ¶
func (driver *NaiveDriver) CreateVolume(path string) error
func (*NaiveDriver) DestroyVolume ¶
func (driver *NaiveDriver) DestroyVolume(path string) error
type OverlayDriver ¶
func (*OverlayDriver) CreateCopyOnWriteLayer ¶
func (driver *OverlayDriver) CreateCopyOnWriteLayer(path string, parent string) error
func (*OverlayDriver) CreateVolume ¶
func (driver *OverlayDriver) CreateVolume(path string) error
func (*OverlayDriver) DestroyVolume ¶
func (driver *OverlayDriver) DestroyVolume(path string) error
func (*OverlayDriver) RecoverMountTable ¶ added in v1.6.5
func (driver *OverlayDriver) RecoverMountTable(liveVolumesDir string) error
We apply 2 types of mounts when using the overlay driver
- For any new volume, we create its root in the overlaysDir and issue a bind mount of that root into the liveVolumesDir
- For COW volumes, we create upper and work dirs and use ancestry to determine the lower dir. These dirs are used to create an overlay mount.
These mounts can disappear when the system reboots (mount table cleared) As a precaution we reattach mounts during startup to fix missing ones
Click to show internal directories.
Click to hide internal directories.