mirror_lxc/src
Christian Brauner 6e46cc0dca Make overlayfs mounts work directly
When users wanted to mount overlay directories with lxc.mount.entry they had to
create upperdirs and workdirs beforehand in order to mount them. To create it
for them we add the functions mount_entry_create_overlay_dirs() and
mount_entry_create_aufs_dirs() which do this for them. User can now simply
specify e.g.:

        lxc.mount.entry = /lower merged overlay lowerdir=/lower,upper=/upper,workdir=/workdir,create=dir

and /upper and /workdir will be created for them. /upper and /workdir need to
be absolute paths to directories which are created under the containerdir (e.g.
under $lxcpath/CONTAINERNAME/). Relative mountpoints, mountpoints outside the
containerdir, and mountpoints within the container's rootfs are ignored. (The
latter *might* change in the future should it be considered safe/useful.)

Specifying

        lxc.mount.entry = /lower merged overlay lowerdir=/lower:/lower2,create=dir

will lead to a read-only overlay mount in accordance with the
kernel-documentation.

Specifying

        lxc.mount.entry = /lower merged overlay lowerdir=/lower,create=dir

will fail when no upperdir and workdir options are given.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
2015-10-07 16:38:07 +01:00
..
include licensing: Add missing headers and FSF address 2013-09-03 14:33:03 -04:00
lua-lxc Fix Lua 5.3 compatibility code. 2015-04-26 23:26:27 +02:00
lxc Make overlayfs mounts work directly 2015-10-07 16:38:07 +01:00
python-lxc Fix indentation 2015-09-21 16:25:47 -04:00
tests lxc-test-symlink: add a test using absolute symlink 2015-10-05 11:49:05 +01:00
Makefile.am add lua binding for the lxc API 2013-01-28 18:04:08 -05:00