Re: [lxc-devel] [PATCH 1/2 v2] Add support for new target plamo to configure.ac

2015-12-08 Thread Serge Hallyn
Quoting TAMUKI Shoichi (tam...@linet.gr.jp): > Add support for new target plamo to specify the linux distribution. > Plamo Linux uses sysvinit. > > Signed-off-by: KATOH Yasufumi > Signed-off-by: TAMUKI Shoichi thanks, Acked-by: Serge E. Hallyn > --- > configure.ac | 7 --- > 1 file chan

[lxc-devel] [PATCH 1/2 v2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
Add support for new target plamo to specify the linux distribution. Plamo Linux uses sysvinit. Signed-off-by: KATOH Yasufumi Signed-off-by: TAMUKI Shoichi --- configure.ac | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8dae3ad..e2827

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
Hello, From: Serge Hallyn Subject: Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac Date: Wed, 9 Dec 2015 01:46:01 + > > > > +++ b/configure.ac > > > > @@ -34,7 +34,10 @@ AC_GNU_SOURCE > > > > # Detect the distribution. This is used for the default configuration

Re: [lxc-devel] [PATCH 3/3] c/r: add more logging when restore fails

2015-12-08 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > Signed-off-by: Tycho Andersen > --- Acked-by: Serge E. Hallyn > src/lxc/criu.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/lxc/criu.c b/src/lxc/criu.c > index 062289f..da909a9 100644 > --- a/src/lxc/

Re: [lxc-devel] [PATCH 2/3] c/r: escape cgroups before exec()ing criu

2015-12-08 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > Signed-off-by: Tycho Andersen Acked-by: Serge E. Hallyn > --- > src/lxc/criu.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/src/lxc/criu.c b/src/lxc/criu.c > index c0ce965..062289f 100644 > --- a/src/lxc/criu.c

Re: [lxc-devel] [PATCH 1/3] cgroup: add cgroup_escape() call

2015-12-08 Thread Serge Hallyn
Quoting Tycho Andersen (tycho.ander...@canonical.com): > We'll use this in the next patch to escape to the root cgroup before we > exec criu. > > Signed-off-by: Tycho Andersen > --- > src/lxc/cgfs.c | 50 ++ > src/lxc/cgmanager.c | 19

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread Serge Hallyn
Quoting TAMUKI Shoichi (tam...@linet.gr.jp): > > > +++ b/configure.ac > > > @@ -34,7 +34,10 @@ AC_GNU_SOURCE > > > # Detect the distribution. This is used for the default configuration and > > > # for some distro-specific build options. > > > AC_MSG_CHECKING([host distribution]) > > > -AC_ARG_WI

Re: [lxc-devel] [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 06:51:20AM -0500, Greg KH wrote: > On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > > From: Aditya Kali > > > > The new function kernfs_path_from_node() generates and returns kernfs > > path of a given kernfs_node relative to a given parent kernfs

Re: [lxc-devel] [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Greg KH
On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > From: Aditya Kali > > The new function kernfs_path_from_node() generates and returns kernfs > path of a given kernfs_node relative to a given parent kernfs_node. > > Changelog 20151125: > - Fully-wing multilinecomments

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread TAMUKI Shoichi
Hello, From: Serge Hallyn Subject: Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac Date: Tue, 8 Dec 2015 15:56:53 + > > Add support for new target plamo to specify the linux distribution. > > Plamo Linux uses sysvinit. Also, fold distro line at about 80 chars >

Re: [lxc-devel] [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:20:40AM -0500, Tejun Heo wrote: > Hello, > > On Mon, Dec 07, 2015 at 05:06:20PM -0600, serge.hal...@ubuntu.com wrote: > > fs/kernfs/mount.c | 74 > > > > include/linux/kernfs.h |2 ++ > > kernel/cgroup.c

Re: [lxc-devel] [PATCH 1/3] cgroup: add cgroup_escape() call

2015-12-08 Thread Tycho Andersen
On Tue, Dec 08, 2015 at 04:08:09PM -0700, Tycho Andersen wrote: > Whoops, forgot the --compose flag. I should mention that this is on top of my already sent patches about adding the ->migrate API call. It probably doesn't matter except for patch 3, and even that git can probably figure out, but i

[lxc-devel] [PATCH 2/3] c/r: escape cgroups before exec()ing criu

2015-12-08 Thread Tycho Andersen
Signed-off-by: Tycho Andersen --- src/lxc/criu.c | 12 1 file changed, 12 insertions(+) diff --git a/src/lxc/criu.c b/src/lxc/criu.c index c0ce965..062289f 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -56,6 +56,18 @@ void exec_criu(struct criu_opts *opts) char buf[4

[lxc-devel] [PATCH 1/3] cgroup: add cgroup_escape() call

2015-12-08 Thread Tycho Andersen
We'll use this in the next patch to escape to the root cgroup before we exec criu. Signed-off-by: Tycho Andersen --- src/lxc/cgfs.c | 50 ++ src/lxc/cgmanager.c | 19 --- src/lxc/cgroup.c| 7 +++ src/lxc/cgroup.h|

[lxc-devel] [PATCH 3/3] c/r: add more logging when restore fails

2015-12-08 Thread Tycho Andersen
Signed-off-by: Tycho Andersen --- src/lxc/criu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lxc/criu.c b/src/lxc/criu.c index 062289f..da909a9 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -525,6 +525,7 @@ void do_restore(struct lxc_container *c, int pipe, c

Re: [lxc-devel] [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 02:46:00PM -0500, Tejun Heo wrote: > Hello, Serge. > > On Tue, Dec 08, 2015 at 01:34:31PM -0600, Serge E. Hallyn wrote: > > > I'd prefer collecting all ns related declarations in a single place. > > > > I can group some of them, but free_cgroup_ns needs the > > cgroup_name

Re: [lxc-devel] [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Tejun Heo
Hello, Serge. On Tue, Dec 08, 2015 at 01:34:31PM -0600, Serge E. Hallyn wrote: > > I'd prefer collecting all ns related declarations in a single place. > > I can group some of them, but free_cgroup_ns needs the > cgroup_namespace definition, put_cgroup_ns() needs free_cgroup_ns(), > and free_cgro

Re: [lxc-devel] [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:04:53AM -0500, Tejun Heo wrote: > On Mon, Dec 07, 2015 at 05:06:18PM -0600, serge.hal...@ubuntu.com wrote: > > static const char *proc_ns_follow_link(struct dentry *dentry, void > > **cookie) > > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > > index 2b3

Re: [lxc-devel] [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 10:52:51AM -0500, Tejun Heo wrote: > Hello, Serge. > > On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > > +/* kernfs_node_depth - compute depth from @from to @to */ > > +static size_t kernfs_node_distance(struct kernfs_node *from, struct > > kernf

Re: [lxc-devel] [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:20:40AM -0500, Tejun Heo wrote: > Hello, > > On Mon, Dec 07, 2015 at 05:06:20PM -0600, serge.hal...@ubuntu.com wrote: > > fs/kernfs/mount.c | 74 > > > > include/linux/kernfs.h |2 ++ > > kernel/cgroup.c

Re: [lxc-devel] [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 10:52:51AM -0500, Tejun Heo wrote: > Hello, Serge. > > On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > > +/* kernfs_node_depth - compute depth from @from to @to */ > > +static size_t kernfs_node_distance(struct kernfs_node *from, struct > > kernf

Re: [lxc-devel] [PATCH 6/7] cgroup: Add documentation for cgroup namespaces

2015-12-08 Thread Tejun Heo
On Mon, Dec 07, 2015 at 05:06:21PM -0600, serge.hal...@ubuntu.com wrote: > From: Aditya Kali > > Signed-off-by: Aditya Kali > Signed-off-by: Serge Hallyn > --- > Documentation/cgroups/namespace.txt | 142 > +++ Please integrate the documentation into Documenta

Re: [lxc-devel] [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-08 Thread Tejun Heo
Hello, On Mon, Dec 07, 2015 at 05:06:20PM -0600, serge.hal...@ubuntu.com wrote: > fs/kernfs/mount.c | 74 > > include/linux/kernfs.h |2 ++ > kernel/cgroup.c| 39 - > 3 files changed, 114 insertions(+),

[lxc-devel] LXC 1.0.8-0ubuntu0.3 autostart broken

2015-12-08 Thread Лев Николаев
Hi there! Looks like container autostart in recent 1.0.8-0ubuntu0.3 update in Ubuntu 14.04 is broken. I have about 200 containers, and do not have bootgroups. After update to 1.0.8-0ubuntu0.3 they don’t seem to start correctly, some start, some not. Any ideas? Leo __

Re: [lxc-devel] [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Tejun Heo
On Mon, Dec 07, 2015 at 05:06:18PM -0600, serge.hal...@ubuntu.com wrote: > static const char *proc_ns_follow_link(struct dentry *dentry, void **cookie) > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > index 2b3e2314..906f240 100644 > --- a/include/linux/cgroup.h > +++ b/include/lin

Re: [lxc-devel] [PATCH 1/2] Add support for new target plamo to configure.ac

2015-12-08 Thread Serge Hallyn
Quoting TAMUKI Shoichi (tam...@linet.gr.jp): > Add support for new target plamo to specify the linux distribution. > Plamo Linux uses sysvinit. Also, fold distro line at about 80 chars > because the line is too long. > > Signed-off-by: KATOH Yasufumi > Signed-off-by: TAMUKI Shoichi > --- > con

Re: [lxc-devel] [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Tejun Heo
Hello, Serge. On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > +/* kernfs_node_depth - compute depth from @from to @to */ > +static size_t kernfs_node_distance(struct kernfs_node *from, struct > kernfs_node *to) > { > + size_t depth = 0; > > + BUG_ON(!to); > +

Re: [lxc-devel] [PATCH 2/2] Fold dnsmasq command line in lxc-net.in

2015-12-08 Thread Serge Hallyn
Quoting TAMUKI Shoichi (tam...@linet.gr.jp): > Fold dnsmasq command line at about 80 chars because the line is too > long. > > Signed-off-by: TAMUKI Shoichi Normally I don't like whitespace-only patches, but this does make it much more readable. Acked-by: Serge E. Hallyn > --- > config/init

Re: [lxc-devel] CGroup Namespaces (v6)

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:10:03AM +0100, Alban Crequy wrote: > Hi, > > Thanks for the patches! > > On 8 December 2015 at 00:06, wrote: > > Hi, > > > > following is a revised set of the CGroup Namespace patchset which Aditya > > Kali has previously sent. The code can also be found in the cgrou

Re: [lxc-devel] Building lxc on CentOS 7

2015-12-08 Thread Johannes Kastl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear all, Am 05.12.15 schrieb Johannes Kastl: > Is there a way to tell configure (I guess this is the configure > step) to use the other python, that is in /usr/bin/python34 and > not in /usr/bin/python? There is. I had to patch configure.ac and ad