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

Serge Hallyn serge.hallyn at ubuntu.com
Tue Oct 27 20:12:27 UTC 2015


Quoting Christian Brauner (christianvanbrauner at gmail.com):
> On Tue, Oct 27, 2015 at 05:26:53PM +0000, Serge Hallyn wrote:
> > Quoting Christian Brauner (christianvanbrauner at gmail.com):
> > > - 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.
> > 
> > Hm.  Sorry, that's no good, I'm glad you caught that.  We can't leave
> > $number_of_runs * $number_of_overlays directories sitting around.
> > We could just use workdir.$(echo $target | tr / _)  so we can reuse
> > it?
> Hm, feels hackish.. I don't think this is worth it.

Eh, but it should be unique :)

I'm ok with dropping it.

Thanks!

-serge


More information about the lxc-devel mailing list