[lxc-devel] [PATCH] Improve the help of lxc-create

2015-12-23 Thread KATOH Yasufumi
* remove unavailable options (-w, -r) * remove overlapped option (-P) * classify options according to bdev type Signed-off-by: KATOH Yasufumi --- src/lxc/lxc_create.c | 54 ++-- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/src/lx

[lxc-devel] [PATCH RFC] detect which cgroups we cannot use

2015-12-23 Thread Serge Hallyn
and continue without them if possible This patch only handles cgmanger - we need to handle this in cgfs too. Signed-off-by: Serge Hallyn --- src/lxc/cgmanager.c | 116 ++-- 1 file changed, 113 insertions(+), 3 deletions(-) diff --git a/src/lxc/cg

[lxc-devel] [lxc/lxc] 294883: Fix swap calculation

2015-12-23 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 294883150ce100a8b54047e5e53d1c9671f28912 https://github.com/lxc/lxc/commit/294883150ce100a8b54047e5e53d1c9671f28912 Author: Eva Charlotte Mayer Date: 2015-12-23 (Wed, 23 Dec 2015) Changed paths: M src/lxc

Re: [lxc-devel] [PATCH 3/8 v8.2] cgroup: introduce cgroup namespaces

2015-12-23 Thread Serge E. Hallyn
Introduce the ability to create new cgroup namespace. The newly created cgroup namespace remembers the cgroup of the process at the point of creation of the cgroup namespace (referred as cgroupns-root). The main purpose of cgroup namespace is to virtualize the contents of /proc/self/cgroup file. Pr

Re: [lxc-devel] [PATCH 1/8 v8.2] kernfs: Add API to generate relative kernfs path

2015-12-23 Thread Serge E. Hallyn
e minds I can update it too. Changelog 20151223: - don't allocate memory pr_cont_kernfs_path() under spinlock --- fs/kernfs/dir.c| 192 include/linux/kernfs.h |9 ++- 2 files changed, 166 insertions(+), 35 deletions(-) diff --g

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

2015-12-23 Thread Greg KH
On Wed, Dec 23, 2015 at 11:24:33AM -0500, Tejun Heo wrote: > On Tue, Dec 22, 2015 at 10:23:22PM -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 kern

Re: [lxc-devel] [PATCH 5/8] kernfs: define kernfs_node_dentry

2015-12-23 Thread Greg KH
On Wed, Dec 23, 2015 at 11:25:15AM -0500, Tejun Heo wrote: > On Tue, Dec 22, 2015 at 10:23:26PM -0600, serge.hal...@ubuntu.com wrote: > > From: Aditya Kali > > > > Add a new kernfs api is added to lookup the dentry for a particular > > kernfs path. > > > > Signed-off-by: Aditya Kali > > Signed-

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

2015-12-23 Thread Serge E. Hallyn
On Wed, Dec 23, 2015 at 11:08:54AM -0500, Tejun Heo wrote: > Hello, Serge. > > On Tue, Dec 22, 2015 at 10:23:22PM -0600, serge.hal...@ubuntu.com wrote: > > @@ -164,18 +286,39 @@ void pr_cont_kernfs_name(struct kernfs_node *kn) > > void pr_cont_kernfs_path(struct kernfs_node *kn) > > { > > un

Re: [lxc-devel] On the road to LXC 2.0.0

2015-12-23 Thread Christian Brauner
On Wed, Dec 23, 2015 at 08:57:36AM -0700, Tycho Andersen wrote: > On Mon, Dec 21, 2015 at 05:12:12PM -0500, Stéphane Graber wrote: > > Hey everyone, > > > > So you may have noticed I just tagged LXC 2.0.0 beta1. > > > > The current plan is as follow: > > - LXC 2.0.0 beta2 next week (28th) > > -

Re: [lxc-devel] [PATCH 5/8] kernfs: define kernfs_node_dentry

2015-12-23 Thread Tejun Heo
On Tue, Dec 22, 2015 at 10:23:26PM -0600, serge.hal...@ubuntu.com wrote: > From: Aditya Kali > > Add a new kernfs api is added to lookup the dentry for a particular > kernfs path. > > Signed-off-by: Aditya Kali > Signed-off-by: Serge E. Hallyn Greg, this is the other kernfs change in the seri

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

2015-12-23 Thread Tejun Heo
On Tue, Dec 22, 2015 at 10:23:22PM -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. > > Signed-off-by: Aditya Kali > Signed-off-by: Serge E. H

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

2015-12-23 Thread Tejun Heo
Hello, On Tue, Dec 22, 2015 at 10:23:24PM -0600, serge.hal...@ubuntu.com wrote: ... > +char *cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) > +{ > + int ret; > + > + ret = cgroup_path_ns(cgrp, buf, buflen, current->nsproxy->cgroup_ns); > + if (ret < 0 || ret >= buflen)

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

2015-12-23 Thread Tejun Heo
Hello, Serge. On Tue, Dec 22, 2015 at 10:23:22PM -0600, serge.hal...@ubuntu.com wrote: > @@ -164,18 +286,39 @@ void pr_cont_kernfs_name(struct kernfs_node *kn) > void pr_cont_kernfs_path(struct kernfs_node *kn) > { > unsigned long flags; > - char *p; > + char *p = NULL; > + int

Re: [lxc-devel] On the road to LXC 2.0.0

2015-12-23 Thread Tycho Andersen
On Mon, Dec 21, 2015 at 05:12:12PM -0500, Stéphane Graber wrote: > Hey everyone, > > So you may have noticed I just tagged LXC 2.0.0 beta1. > > The current plan is as follow: > - LXC 2.0.0 beta2 next week (28th) > - LXC 2.0.0 rc1 the week after (4th) Can we potentially push this back? I don't