Signed-off-by: Stephane Nguyen
---
src/lxc/conf.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 6bc9ecb..0913b22 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -2600,10 +2600,16 @@ static int instantiate_veth(struct l
When lxc.ephemeral is set to 1 in the containers config it will be destroyed on
shutdown.
Signed-off-by: Christian Brauner
---
src/lxc/start.c | 58 +
1 file changed, 58 insertions(+)
diff --git a/src/lxc/start.c b/src/lxc/start.c
index ff
Signed-off-by: Christian Brauner
---
src/lxc/lxccontainer.c | 62 --
1 file changed, 19 insertions(+), 43 deletions(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index fb99892..0eaf98e 100644
--- a/src/lxc/lxccontainer.c
+++ b/src
static do_bdev_destroy() and bdev_destroy_wrapper() from lxccontainer.c become
public bdev_destroy() and bdev_destroy_wrapper() in bdev.c and bdev.h
Signed-off-by: Christian Brauner
---
src/lxc/bdev.c | 37 +
src/lxc/bdev.h | 3 +++
2 files changed, 40 insert
These patches add the ability to destroy a container on shutdown when
lxc.ephemeral = 1 is set in the containers config file.
Tested with privileged and unprivileged btrfs-, overlayfs-, and aufs- containers
on Ubuntu Wily 15.04.
Christian Brauner (4):
Add lxc.ephemeral lxc.ephemeral indicat
Signed-off-by: Christian Brauner
---
src/lxc/conf.h| 3 +++
src/lxc/confile.c | 20
2 files changed, 23 insertions(+)
diff --git a/src/lxc/conf.h b/src/lxc/conf.h
index dc5328a..5aebd91 100644
--- a/src/lxc/conf.h
+++ b/src/lxc/conf.h
@@ -370,6 +370,9 @@ struct lxc_conf
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> When lxc.ephemeral is set to 1 in the containers config it will be destroyed
> on
> shutdown.
>
> Signed-off-by: Christian Brauner
Acked-by: Serge E. Hallyn
> ---
> src/lxc/start.c | 58
> ++
Yes, missed this. Updated patch follows after you reviewed the rest.
On Sep 8, 2015 9:19 PM, "Serge Hallyn" wrote:
> Quoting Christian Brauner (christianvanbrau...@gmail.com):
> > static do_bdev_destroy() and bdev_destroy_wrapper() from lxccontainer.c
> become
> > public bdev_destroy() and bdev_d
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> Signed-off-by: Christian Brauner
> ---
> src/lxc/lxccontainer.c | 60
> ++
> 1 file changed, 17 insertions(+), 43 deletions(-)
>
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontai
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> static do_bdev_destroy() and bdev_destroy_wrapper() from lxccontainer.c become
> public bdev_destroy() and bdev_destroy_wrapper() in bdev.c and bdev.h
>
> Signed-off-by: Christian Brauner
> ---
> src/lxc/bdev.c | 39 +++
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> Signed-off-by: Christian Brauner
Acked-by: Serge E. Hallyn
> ---
> src/lxc/conf.h| 3 +++
> src/lxc/confile.c | 20
> 2 files changed, 23 insertions(+)
>
> diff --git a/src/lxc/conf.h b/src/lxc/conf.h
> ind
When lxc.ephemeral is set to 1 in the containers config it will be destroyed on
shutdown.
Signed-off-by: Christian Brauner
---
src/lxc/start.c | 58 +
1 file changed, 58 insertions(+)
diff --git a/src/lxc/start.c b/src/lxc/start.c
index ff
Signed-off-by: Christian Brauner
---
src/lxc/lxccontainer.c | 60 ++
1 file changed, 17 insertions(+), 43 deletions(-)
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index fb99892..6cc3b08 100644
--- a/src/lxc/lxccontainer.c
+++ b/src
static do_bdev_destroy() and bdev_destroy_wrapper() from lxccontainer.c become
public bdev_destroy() and bdev_destroy_wrapper() in bdev.c and bdev.h
Signed-off-by: Christian Brauner
---
src/lxc/bdev.c | 39 +++
src/lxc/bdev.h | 3 +++
2 files changed, 42 inse
Signed-off-by: Christian Brauner
---
src/lxc/conf.h| 3 +++
src/lxc/confile.c | 20
2 files changed, 23 insertions(+)
diff --git a/src/lxc/conf.h b/src/lxc/conf.h
index dc5328a..5aebd91 100644
--- a/src/lxc/conf.h
+++ b/src/lxc/conf.h
@@ -370,6 +370,9 @@ struct lxc_conf
These patches add the ability to destroy a container on shutdown when
lxc.ephemeral = 1 is set in the containers config file.
Tested with privileged and unprivileged btrfs-, overlayfs-, and aufs- containers
on Ubuntu Wily 15.04.
Christian Brauner (4):
Add lxc.ephemeral lxc.ephemeral indicat
Test edge cases (removing first and last entries in lxc_snapshots and the very
last snapshot) and make sure original container isn't destroyed while there are
snapshots, and is when there are none.
Signed-off-by: Serge Hallyn
---
src/tests/Makefile.am | 2 ++
src/tests/lxc-test-snapdeps |
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: f08fee55a1f0ca62c2c97a2d2fd5ef1d7fbae8ee
https://github.com/lxc/lxc/commit/f08fee55a1f0ca62c2c97a2d2fd5ef1d7fbae8ee
Author: Christian Brauner
Date: 2015-09-08 (Tue, 08 Sep 2015)
Changed paths:
M src/lxc/l
Quoting Wolfgang Bumiller (w.bumil...@proxmox.com):
>
>
> > On September 7, 2015 at 5:44 PM Serge Hallyn
> > wrote:
> > Quoting Wolfgang Bumiller (w.bumil...@proxmox.com):
> > > On Fri, Sep 04, 2015 at 06:09:36PM +, Serge Hallyn wrote:
> > > > > I'm assuming the cleanup is left to the kerne
On Mon, Sep 07, 2015 at 05:05:47PM +, Serge Hallyn wrote:
> Quoting Christian Brauner (christianvanbrau...@gmail.com):
> > Signed-off-by: Christian Brauner
> >
> > 100.0% src/lxc/
> > diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
> > index ada3958..475d878 100644
> > --- a/src/lxc/bdev.c
> >
On Mon, Sep 07, 2015 at 04:54:26PM +, Serge Hallyn wrote:
> Quoting Christian Brauner (christianvanbrau...@gmail.com):
> > Signed-off-by: Christian Brauner
>
> Acked-by: Serge E. Hallyn
>
> Though I suspect it's worth changing the assignment in config_ephemeral
> to ensure that it is in fac
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> Signed-off-by: Christian Brauner
Thanks, Christian.
Acked-by: Serge E. Hallyn
> ---
> src/lxc/lxccontainer.c | 31 +--
> 1 file changed, 17 insertions(+), 14 deletions(-)
>
> diff --git a/src/lxc/lxccont
> On September 7, 2015 at 5:44 PM Serge Hallyn wrote:
> Quoting Wolfgang Bumiller (w.bumil...@proxmox.com):
> > On Fri, Sep 04, 2015 at 06:09:36PM +, Serge Hallyn wrote:
> > > > I'm assuming the cleanup is left to the kernel for when the last
> > > > reference to the namespace disappears. Ho
23 matches
Mail list logo