Re: [lxc-devel] [PATCH 1/2] Make mod_all_rdeps() public It will now also be called from start.c

2015-09-15 Thread Serge Hallyn
Quoting Christian Brauner (christianvanbrau...@gmail.com): > Signed-off-by: Christian Brauner Acked-by: Serge E. Hallyn > --- > src/lxc/lxccontainer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [lxc-devel] [PATCH] Add remove_snapshots_entry() (rebased - v2)

2015-09-15 Thread Christian Brauner
On Tue, Sep 15, 2015 at 12:57:26AM +, Serge Hallyn wrote: > Quoting Christian Brauner (christianvanbrau...@gmail.com): > > On Mon, Sep 14, 2015 at 08:51:08PM +, Serge Hallyn wrote: > > > Quoting Christian Brauner (christianvanbrau...@gmail.com): > > > > On Mon, Sep 14, 2015 at 08:31:59PM

Re: [lxc-devel] [PATCH] Add remove_snapshots_entry() (rebased - v2)

2015-09-15 Thread Serge Hallyn
Quoting Christian Brauner (christianvanbrau...@gmail.com): > On Tue, Sep 15, 2015 at 12:57:26AM +, Serge Hallyn wrote: > > Quoting Christian Brauner (christianvanbrau...@gmail.com): > > > The easiest way to achieve this would be to #include lxccontainer.h in > > > utils.h > > > because we

[lxc-devel] [PATCH 0/2] Remove ephemeral containers from lxc_snapshots

2015-09-15 Thread Christian Brauner
This patch makes sure that ephemeral clone-snapshot containers get deleted from the lxc_snapshots file of the container which serves as their base. This is achieved by making mod_all_rdeps() in lxccontainer.c public and putting an extern declaration of the function in start.c. To avoid any races

[lxc-devel] [PATCH 2/2] Remove ephemeral containers from lxc_snapshots

2015-09-15 Thread Christian Brauner
On shutdown ephemeral containers will be destroyed. We use mod_all_rdeps() from lxccontainer.c to update the lxc_snapshots file of the original container. We also include lxclock.h to lock the container when mod_all_rdeps() is called to avoid races. Signed-off-by: Christian Brauner

[lxc-devel] [PATCH 1/2] Make mod_all_rdeps() public It will now also be called from start.c

2015-09-15 Thread Christian Brauner
Signed-off-by: Christian Brauner --- src/lxc/lxccontainer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 0ba4fc0..dd891dc 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c