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

Christian Brauner christianvanbrauner at gmail.com
Tue Oct 27 19:05:06 UTC 2015


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20151027/83475ab9/attachment.sig>


More information about the lxc-devel mailing list