]> git.proxmox.com Git - mirror_lxc.git/commit
Add support for new create=(dir,file) mount option
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 5 Dec 2013 20:37:56 +0000 (15:37 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 6 Dec 2013 16:21:38 +0000 (11:21 -0500)
commit34cfffb38566a9b212db62b1abb1a13bc0648779
treef387570a560b7cc6c395a695a8df031271e6f373
parentd6eca24027daa2a379f6bd2c0f50093a08d4df1d
Add support for new create=(dir,file) mount option

Just like we already had "optional", this adds two new LXC-specific
mount flags:
 - create=dir (will do a mkdir_p on the path)
 - create=file (will do a mkdir_p on the dirname + a fopen on the path)

This was motivated by some of the needed bind-mounts for the
unprivileged containers.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c