Struct libmount::Overlay [] [src]

pub struct Overlay { /* fields omitted */ }

An overlay mount point

This requires linux kernel of at least 3.18.

To use overlayfs in user namespace you need a kernel patch (which is enabled by default in ubuntu). At least this is still true for mainline kernel 4.5.0.

Methods

impl Overlay
[src]

A constructor for read-only overlayfs mount

You must have at least two directories in the list (for single dir it might be equal to bind mount, but kernel return EINVAL for such options).

The top-most directory will be first in the list.

A constructor for writable overlayfs mount

The upperdir and workdir must be on the same filesystem.

The top-most directory will be first in the list of lowerdirs.

Execute an overlay mount

Execute an overlay mount and explain the error immediately

Trait Implementations

impl Debug for Overlay
[src]

Formats the value using the given formatter.

impl Clone for Overlay
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Overlay
[src]

Formats the value using the given formatter. Read more