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
I want to avoid having to use the GNU-extension memmem() when removing the
container entry. As mmap() does not guarantee us a \0-terminated string we
lseek() to the end of the file and write() a single terminating \0-byte to the
file and the mmap() the file. The terminating \0-byte will then be rem
This allows us to use standard string handling functions and we can avoid using
the GNU-extension memmem(). This simplifies removing the container from the
lxc_snapshots file. Wrap strstr() in a while loop to remove duplicate entries.
Signed-off-by: Christian Brauner
---
src/lxc/lxccontainer.c |
This allows us to use standard string handling functions and we can avoid using
the GNU-extension memmem(). This simplifies removing the container from the
lxc_snapshots file. Wrap strstr() in a while loop to remove duplicate entries.
Signed-off-by: Christian Brauner
---
src/lxc/lxccontainer.c |
I want to avoid having to use the GNU-extension memmem() when removing the
container entry. As mmap() does not guarantee us a \0-terminated string we
pwrite() a single terminating \0-byte after the end of the file and the mmap()
the file. The terminating \0-byte will then be removed when we ftrunca
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
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
Acked-by: Serge E. Hallyn
> ---
> src/lxc/bd
Quoting Christian Brauner (christianvanbrau...@gmail.com):
> Signed-off-by: Christian Brauner
Acked-by: Serge E. Hallyn
> ---
> src/lxc/lxccontainer.c | 62
> --
> 1 file changed, 19 insertions(+), 43 deletions(-)
>
> diff --git a/src/lxc/lxcco
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
> ++