aufs

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const MsRemount = syscall.MS_REMOUNT

Variables

View Source
var (
	ErrAufsNotSupported = fmt.Errorf("AUFS was not found in /proc/filesystems")
)

Functions

func Init

func Init(root string) (graphdriver.Driver, error)

New returns a new AUFS driver. An error is returned if AUFS is not supported.

func Unmount

func Unmount(target string) error

Types

type Driver

type Driver struct {
	sync.Mutex // Protects concurrent modification to active
	// contains filtered or unexported fields
}

func (*Driver) ApplyDiff

func (a *Driver) ApplyDiff(id string, diff archive.ArchiveReader) error

func (*Driver) Changes

func (a *Driver) Changes(id string) ([]archive.Change, error)

func (*Driver) Cleanup

func (a *Driver) Cleanup() error

During cleanup aufs needs to unmount all mountpoints

func (*Driver) Create

func (a *Driver) Create(id, parent string) error

Three folders are created for each id mnt, layers, and diff

func (*Driver) Diff

func (a *Driver) Diff(id string) (archive.Archive, error)

Returns an archive of the contents for the id

func (*Driver) DiffSize

func (a *Driver) DiffSize(id string) (int64, error)

Returns the size of the contents for the id

func (Driver) Exists

func (a Driver) Exists(id string) bool

Exists returns true if the given id is registered with this driver

func (*Driver) Get

func (a *Driver) Get(id string) (string, error)

Return the rootfs path for the id This will mount the dir at it's given path

func (*Driver) Migrate

func (a *Driver) Migrate(pth string, setupInit func(p string) error) error

Migrate existing images and containers from docker < 0.7.x

The format pre 0.7 is for docker to store the metadata and filesystem content in the same directory. For the migration to work we need to move Image layer data from /var/lib/docker/graph/<id>/layers to the diff of the registered id.

Next we need to migrate the container's rw layer to diff of the driver. After the contents are migrated we need to register the image and container ids with the driver.

For the migration we try to move the folder containing the layer files, if that fails because the data is currently mounted we will fallback to creating a symlink.

func (*Driver) Put added in v0.8.0

func (a *Driver) Put(id string)

func (*Driver) Remove

func (a *Driver) Remove(id string) error

Unmount and remove the dir information

func (Driver) Status

func (a Driver) Status() [][2]string

func (Driver) String

func (Driver) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL