Re: [lxc-devel] [PATCH 1/4] Automatic mounts: improvements for /proc and /sys

2013-09-27 Thread Christian Seiler
Hi Serge, > My 3.2, 3.8 and 3.11 kernels all behave the same: > > serge@sergeh1:~$ sudo mount -t tmpfs tmpfs /mnt > serge@sergeh1:~$ sudo mount --bind /mnt /mnt2 > serge@sergeh1:~$ sudo mount -o remount,ro /mnt2 > serge@sergeh1:~$ sudo touch /mnt/a > serge@sergeh1:~$ mount | grep /mnt > tmpfs on /

Re: [lxc-devel] [PATCH 1/1] doc: Update Japanese man pages translation

2013-09-27 Thread KATOH Yasufumi
Oh! Sorry (_o_) This patch is incorrect. I will retry. Please ignore following patch. >>> On Fri, 27 Sep 2013 16:21:54 +0900 in message "[PATCH 1/1] doc: Update Japanese man pages translation" KATOH Yasufumi-san wrote: > * sync current English man pages on master branch >

Re: [lxc-devel] [PATCH 1/1] doc: Update Japanese man pages translation

2013-09-27 Thread KATOH Yasufumi
>>> On Fri, 27 Sep 2013 16:44:35 +0900 in message "Re: [lxc-devel] [PATCH 1/1] doc: Update Japanese man pages translation" I wrote: > Oh! Sorry (_o_) > This patch is incorrect. I will retry. Please ignore following patch. I sent pull request on github. https://githu

[lxc-devel] [lxc/lxc] a9ac16: lxc-info: Port to LXC API

2013-09-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: a9ac16e2cc1634556b0191896f87399c362d791b https://github.com/lxc/lxc/commit/a9ac16e2cc1634556b0191896f87399c362d791b Author: Stéphane Graber Date: 2013-09-27 (Fri, 27 Sep 2013) Changed paths: M src/lxc/lxc

[lxc-devel] [testcase] Re: [PATCH 1/4] Automatic mounts: improvements for /proc and /sys

2013-09-27 Thread Serge Hallyn
Yeah, the appended testcase shows that mount(2) with MS_REMOUNT|MS_RDONLY and without MS_BIND does remount the sb readonly, as we expected. So as Jäkel pointed out privately, mount(1) is sometimes looking at /etc/mtab, seeing a bind mount, and adding MS_BIND to be nice. Meaning that we absolutely

Re: [lxc-devel] [PATCH 0/4] Automatic mounting improvements

2013-09-27 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > Hi there, > > I've attached the automatic mounting improvements that were discussed > in the thread > > > The patches are against current github master and I've also pushed them

[lxc-devel] [lxc/lxc] b06b85: Automatic mounts: improvements for /proc and /sys

2013-09-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: b06b8511680c6263a05a9065a7cc3a031e503a6b https://github.com/lxc/lxc/commit/b06b8511680c6263a05a9065a7cc3a031e503a6b Author: Christian Seiler Date: 2013-09-27 (Fri, 27 Sep 2013) Changed paths: M src/lxc/co

[lxc-devel] [PATCH] valgrind: fix small leak in cgroup

2013-09-27 Thread Dwight Engen
Signed-off-by: Dwight Engen --- src/lxc/cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index e27bc03..077e706 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -1563,6 +1563,7 @@ void lxc_cgroup_hierarchy_free(struct cgroup_hierarchy *h)

Re: [lxc-devel] memory leak

2013-09-27 Thread Dwight Engen
On Thu, 26 Sep 2013 20:58:58 -0500 Serge Hallyn wrote: > Quoting Dwight Engen (dwight.en...@oracle.com): > > Hi guys, > > > > So the line: > > > > r = lxc_grow_array((void ***)&h->all_mount_points, > > &h->all_mount_point_capacity, k + 1, 4); > > > > in cgroup.c shows up

Re: [lxc-devel] [PATCH] valgrind: fix small leak in cgroup

2013-09-27 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > Signed-off-by: Dwight Engen Acked-by: Serge E. Hallyn > --- > src/lxc/cgroup.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c > index e27bc03..077e706 100644 > --- a/src/lxc/cgroup.c > +++ b/src/lx

[lxc-devel] [lxc/lxc] 8bfcb9: valgrind: fix small leak in cgroup

2013-09-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 8bfcb981de7a6c31ec0fd608279399dc037da2f1 https://github.com/lxc/lxc/commit/8bfcb981de7a6c31ec0fd608279399dc037da2f1 Author: Dwight Engen Date: 2013-09-27 (Fri, 27 Sep 2013) Changed paths: M src/lxc/cgroup

[lxc-devel] [lxc/lxc] a24b87: Fix typo

2013-09-27 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: a24b87120648acc328d78687516efe205e3356b0 https://github.com/lxc/lxc/commit/a24b87120648acc328d78687516efe205e3356b0 Author: Stéphane Graber Date: 2013-09-27 (Fri, 27 Sep 2013) Changed paths: M src/lxc/lxc

[lxc-devel] [PATCH 1/1] add c->may_control

2013-09-27 Thread Serge Hallyn
This is an api function which will return false if the container is running, and the caller may not talk to its monitor over its command socket. Otherwise - if the container is not running, or the caller may access it - it returns true. We can use this in several tools early on to prevent the seg

[lxc-devel] [RFC] yet another rootfs pinning change

2013-09-27 Thread Christian Seiler
Hi, I'm attaching a patch that makes additional chanes to the rootfs pinning mechanism. It can also be found under: This patch implements things that were floating around in discussions earlier. I know it is still in flux of how to best handle

[lxc-devel] [PATCH] rootfs pinning: make file hidden, don't delete it, encode pid

2013-09-27 Thread Christian Seiler
This makes the following changes to the rootfs pinning mechanism: - Contrary to a recent change, the file will not be deleted immediately after creation. This should make NFS happy. - To reduce nuissance for administrators, make the file hidden by default. - Delete the file at container