[lxc-devel] [PATCH] allow setting/getting lxc.loglevel and lxc.logfile via set_config_item/get_config_item API calls

2013-11-01 Thread S . Çağlar Onur
Signed-off-by: S.Çağlar Onur --- src/lxc/log.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lxc/log.c b/src/lxc/log.c index 0946e44..e5eb04f 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -295,13 +295,13 @@ extern int lxc_log_init(const char *name, const c

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 17:56 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Fri, 2013-11-01 at 17:18 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > > > > Quo

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 17:25 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Fri, 2013-11-01 at 16:30 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > > > > > Quo

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Fri, 2013-11-01 at 17:18 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > > I did inco

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 17:18 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > I did incorporate your suggestion of using the hash of the rootfs pat

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 17:18 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > I did incorporate your suggestion of using the hash of the rootfs pat

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Fri, 2013-11-01 at 16:30 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > > The only p

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > I did incorporate your suggestion of using the hash of the rootfs path > > > as the subdirectory under the hosts /dev/ for the contai

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 16:30 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > The only place that's being used is in creating a symlink... > > > >

[lxc-devel] [lxc/lxc] 052616: valgrind drd tool shows conflicting stores happeni...

2013-11-01 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 052616ebc639aa865c9da3805227cd46618346b6 https://github.com/lxc/lxc/commit/052616ebc639aa865c9da3805227cd46618346b6 Author: S.Çağlar Onur Date: 2013-11-01 (Fri, 01 Nov 2013) Changed paths: M configure.ac

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > I did incorporate your suggestion of using the hash of the rootfs path > > as the subdirectory under the hosts /dev/ for the container. I also > > (Printed this out to look it over, just

Re: [lxc-devel] [PATCH] valgrind drd tool shows conflicting stores happening at lxc_global_config_value@src/lxc/utils.c (v2)

2013-11-01 Thread Serge Hallyn
Quoting S.Çağlar Onur (cag...@10ur.org): > Conflict occurs between following lines > > [...] > 269 if (values[i]) > 270 return values[i]; > [...] > > and > > [...] > 309 /* could not find value, use default */ > 310 values[i] = (*ptr)[1]; > [...] > > fix

Re: [lxc-devel] [PATCH] ignore tags files that can be created via make ctags target

2013-11-01 Thread Serge Hallyn
Quoting S.Çağlar Onur (cag...@10ur.org): > Signed-off-by: S.Çağlar Onur Acked-by: Serge E. Hallyn > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index 8901fc7..82b144a 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -128,3 +128,4 @@ src

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > The only place that's being used is in creating a symlink... > > > > > > /dev/.lxc/$name -> /dev/.lxc/$pathhash > > > > > > I use i

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > I'm also trying to figure out where those "rootfsproc" and "rootfssys" > > subdirectories in /var/lib/lxc/$name/ are being creating. I'm having a > I don't know either. I don't have th

[lxc-devel] [PATCH] ignore tags files that can be created via make ctags target

2013-11-01 Thread S . Çağlar Onur
Signed-off-by: S.Çağlar Onur --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8901fc7..82b144a 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,4 @@ src/stamp-h1 patches *.orig *.rej +tags -- 1.8.3.2

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 15:03 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > The only place that's being used is in creating a symlink... > > > > /dev/.lxc/$name -> /dev/.lxc/$pathhash > > > > I use it for the same reason you wanted the extra bind mounts to > > $

[lxc-devel] [PATCH] valgrind drd tool shows conflicting stores happening at lxc_global_config_value@src/lxc/utils.c (v2)

2013-11-01 Thread S . Çağlar Onur
Conflict occurs between following lines [...] 269 if (values[i]) 270 return values[i]; [...] and [...] 309 /* could not find value, use default */ 310 values[i] = (*ptr)[1]; [...] fix it using a specific lock dedicated to that problem as Serge suggested.

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > The only place that's being used is in creating a symlink... > > /dev/.lxc/$name -> /dev/.lxc/$pathhash > > I use it for the same reason you wanted the extra bind mounts to > $lxcpath/$lxcname.dev. In your case, you wanted to see the dev mapping

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Fri, 2013-11-01 at 12:34 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > > Quoting Michael H. Warfield (m...@wittsend.com): > > > > I did incorporate your suggestion of using the hash of the rootfs pat

[lxc-devel] [lxc/lxc] 4de279: always remount / rslave before running creation te...

2013-11-01 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 4de2791fa7dcc6d4cd445f3c6678623a998b18e2 https://github.com/lxc/lxc/commit/4de2791fa7dcc6d4cd445f3c6678623a998b18e2 Author: Serge Hallyn Date: 2013-11-01 (Fri, 01 Nov 2013) Changed paths: M src/lxc/lxccon

Re: [lxc-devel] Strange problem (stray mounts) with lxc-create...

2013-11-01 Thread Stéphane Graber
On Fri, Nov 01, 2013 at 12:19:11PM -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > 14 15 0:13 / /proc/sys/fs/binfmt_misc rw,relatime shared:20 - autofs > > systemd-1 rw,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct > > D'oh. D'oh. D'oh. > > I've been g

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > I did incorporate your suggestion of using the hash of the rootfs path > > > as the subdirectory under the hosts /dev/ for the contai

Re: [lxc-devel] Strange problem (stray mounts) with lxc-create...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > 14 15 0:13 / /proc/sys/fs/binfmt_misc rw,relatime shared:20 - autofs > systemd-1 rw,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct D'oh. D'oh. D'oh. I've been going over detect_shared_rootfs() again and again, confirming that it should

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Michael H. Warfield
On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > I did incorporate your suggestion of using the hash of the rootfs path > > as the subdirectory under the hosts /dev/ for the container. I also > > (Printed this out to look it over, just

Re: [lxc-devel] [Not A Patch] [POC] Proof of concept code for using devtmpfs for autodev and more...

2013-11-01 Thread Serge Hallyn
Quoting Michael H. Warfield (m...@wittsend.com): > On Thu, 2013-10-31 at 13:00 -0500, Serge Hallyn wrote: > > Quoting Michael H. Warfield (m...@wittsend.com): > > > I did incorporate your suggestion of using the hash of the rootfs path > > > as the subdirectory under the hosts /dev/ for the contai

[lxc-devel] [lxc/lxc] 0779c6: remove a few noisy, unhelpful INFOs in detect_shar...

2013-11-01 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 0779c6f9206ae73b8f22f41134e04e6b292aef96 https://github.com/lxc/lxc/commit/0779c6f9206ae73b8f22f41134e04e6b292aef96 Author: Serge Hallyn Date: 2013-11-01 (Fri, 01 Nov 2013) Changed paths: M src/lxc/conf.c