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 need

[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 @@ -2111,7 +2111,7 @@ static void

[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 we

[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 --- src/lxc/s

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 a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c > index 0ba4fc0..dd89

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

2015-09-15 Thread Serge Hallyn
Quoting Christian Brauner (christianvanbrau...@gmail.com): > 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 call

[lxc-devel] [lxc/lxc] 38f61a: init: Support older apparmor

2015-09-15 Thread GitHub
Branch: refs/heads/stable-1.0 Home: https://github.com/lxc/lxc Commit: 38f61ae6733d7c58787f28205721c2231a6d3383 https://github.com/lxc/lxc/commit/38f61ae6733d7c58787f28205721c2231a6d3383 Author: Stéphane Graber Date: 2015-09-15 (Tue, 15 Sep 2015) Changed paths: M config/