Quoting Jean-Tiare LE BIGOT ([email protected]):
> 
> 
> On 08/08/2014 06:41 PM, Serge Hallyn wrote:
> >Quoting Stéphane Graber ([email protected]):
> >>Hello,
> >>
> >>We received this patch on github: https://github.com/lxc/lxc/pull/289.patch
> >>
> >>While it does appear to make sense to me that we don't want cruft piling
> >>up in /dev, especially on systems creating hundreds/thousands of
> >>temporary containers, Serge told me that this may have been done by
> >>design.
> >
> >Right, I wasn't sure whether Michael wanted those to persist.  If not, then
> >great let's apply as is.  If so, then how about if we have lxc check at
> >start time whether the dir already existed - if so it leaves it be, else it
> >removes it at shutdown?
> 
> Or maybe I can just add a check to see if the container has a valid
> configuration path. If it is not valid, container has been created
> via the API AND not persisted, hence not persistent.

Sounds good.  In addition we might want both lxc-destroy and the
auto-cleanup in lxc-start-ephemeral (if needed) to call that cleanup fn.
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to