[lxc-devel] [PATCH 0/2] Create random workdir for overlay mounts

Christian Brauner christianvanbrauner at gmail.com
Sun Oct 25 21:59:44 UTC 2015


- When no explicit workdir is given we simply create a random workdir using
  mkdtemp().
- The temporary workdir is not removed when the container stops as it is not
  obvious to me at this point how to do this cleanly. This means that it is left
  to the user to clean up old random workdirs. I don't know if this is
  considered a dealbreaker for anyone. If someone has a nice idea how to remove
  the temporary workdirs (Serge?) do tell.
- Replace 4096 with LINELEN.
- Take the chance to avoid code duplication in mount_entry_create_overlay_dirs()
  and mount_entry_create_aufs_dirs().

Christian Brauner (2):
  Simplify function
  Create random workdir for overlay mounts

 src/lxc/conf.c | 45 ++++++++++++++++++++++++++++++---------------
 1 file changed, 30 insertions(+), 15 deletions(-)

-- 
2.6.2



More information about the lxc-devel mailing list