[lxc-devel] [PATCH] lua: prepare for Lua 5.2

2013-09-04 Thread Natanael Copa
Adjust code for Lua 5.2 and keep compatibility with Lua 5.1. We also fix a bug in the parsing of /proc/mounts while here. Signed-off-by: Natanael Copa --- src/lua-lxc/core.c | 10 -- src/lua-lxc/lxc.lua | 18 ++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --

Re: [lxc-devel] [RFC 1/1] snapshots in api: define lxcapi_snapshot

2013-09-04 Thread Stéphane Graber
On Wed, Sep 04, 2013 at 05:14:49PM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Wed, Sep 04, 2013 at 11:05:02AM -0500, Serge Hallyn wrote: > > > Hi, > > > > > > before I go on with the snapshots-in-api patchset, I wanted to floar > > > this and ask a few quest

Re: [lxc-devel] [RFC 1/1] snapshots in api: define lxcapi_snapshot

2013-09-04 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Wed, Sep 04, 2013 at 11:05:02AM -0500, Serge Hallyn wrote: > > Hi, > > > > before I go on with the snapshots-in-api patchset, I wanted to floar > > this and ask a few questions, as I'm having a hard time deciding how > > we want to talk over the

[lxc-devel] [PATCH] valgrind: fix memory leak on container new/put

2013-09-04 Thread Dwight Engen
Signed-off-by: Dwight Engen --- src/lxc/lxclock.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lxc/lxclock.c b/src/lxc/lxclock.c index dea6941..79ebf84 100644 --- a/src/lxc/lxclock.c +++ b/src/lxc/lxclock.c @@ -122,6 +122,10 @@ struct lxc_lock *lxc_newlock(con

Re: [lxc-devel] lxc-destroy considered harmful

2013-09-04 Thread Serge Hallyn
Quoting Thomas Moschny (thomas.mosc...@gmail.com): > Hi, > > in https://bugzilla.redhat.com/show_bug.cgi?id=1003136 , a Fedora LXC > user reports a problem with lxc-destroy removing parts of his host > file system. > > He's using 0.8.0, and the obvious advice for him is to try with 0.9.0 > (which

[lxc-devel] [lxc/lxc] 75b553: lxc-alpine: add hwaddr for a single macvlan interf...

2013-09-04 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: 75b5535282453b3442a41df4a3ba6d3058cd6e48 https://github.com/lxc/lxc/commit/75b5535282453b3442a41df4a3ba6d3058cd6e48 Author: Natanael Copa Date: 2013-09-04 (Wed, 04 Sep 2013) Changed paths: M templates/lx

Re: [lxc-devel] [PATCH] lxc-alpine: add hwaddr for a single macvlan interface

2013-09-04 Thread Serge Hallyn
Quoting Natanael Copa (nc...@alpinelinux.org): > We already add harware address for a single veth interface. Do the same > with a single macvlan interface. > > Signed-off-by: Natanael Copa Acked-by: Serge E. Hallyn > --- > templates/lxc-alpine.in | 8 +--- > 1 file changed, 5 insertions(+

[lxc-devel] Fwd: [Lxc-users] Working LXC templates?

2013-09-04 Thread Tony Su
-- Forwarded message -- From: Tony Su Date: Wed, Sep 4, 2013 at 10:23 AM Subject: Re: [Lxc-users] Working LXC templates? To: m...@wittsend.com Cc: Frederic Crozat , lxc-users , lxc-devel@lists.sourceforge.net Thx for the thoughts, Michael... Would like to know specifically what

[lxc-devel] [PATCH] lxc-alpine: add hwaddr for a single macvlan interface

2013-09-04 Thread Natanael Copa
We already add harware address for a single veth interface. Do the same with a single macvlan interface. Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 2a

Re: [lxc-devel] [PATCH] bdev_copy segfaults if bdevtype is NULL

2013-09-04 Thread Serge Hallyn
Quoting S.Çağlar Onur (cag...@10ur.org): > Signed-off-by: S.Çağlar Onur Acked-by: Serge E. Hallyn > --- > src/lxc/bdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c > index 39592b2..b45f2cb 100644 > --- a/src/lxc/bdev.c > +++ b/src/

[lxc-devel] [lxc/lxc] e34b5d: bdev_copy segfaults if bdevtype is NULL

2013-09-04 Thread GitHub
Branch: refs/heads/staging Home: https://github.com/lxc/lxc Commit: e34b5d2ef2c329afe6540bbfc298ae631378832e https://github.com/lxc/lxc/commit/e34b5d2ef2c329afe6540bbfc298ae631378832e Author: S.Çağlar Onur Date: 2013-09-04 (Wed, 04 Sep 2013) Changed paths: M src/lxc/bdev

Re: [lxc-devel] [Lxc-users] Working LXC templates?

2013-09-04 Thread Natanael Copa
On Wed, 04 Sep 2013 09:40:49 -0400 "Michael H. Warfield" wrote: > I do think it is an issue with the whole "distribution agnostic > template" problem that may require some help from the distros or some > innovative ideas of how we can bootstrap distros using distro agnostic > tools (like stone k

Re: [lxc-devel] [Lxc-users] Working LXC templates?

2013-09-04 Thread Michael H. Warfield
This issue really belongs on -devel since it's a template development issue that really impacts all the template writers. On Tue, 2013-09-03 at 09:26 -0700, Tony Su wrote: > Thx all for the replies, > - lxc-version returns 0.8.0. Looking around, there might be a more current > unstable, but AFAIK

Re: [lxc-devel] [RFC 1/1] snapshots in api: define lxcapi_snapshot

2013-09-04 Thread Serge Hallyn
> In addition, I'll add lxcapi_snapshot_destroy(), which will look like: > > c = lxc_container_new("c0", "/var/lib/lxc"); > c->snapshot_destroy(c, "snap1"); > lxc_container_put(c); > > As for snapshot_list, I'm thinking it will just look like: > > c = lxc_container_new("c

[lxc-devel] [RFC 1/1] snapshots in api: define lxcapi_snapshot

2013-09-04 Thread Serge Hallyn
Hi, before I go on with the snapshots-in-api patchset, I wanted to floar this and ask a few questions, as I'm having a hard time deciding how we want to talk over the API. (Though as I've been typing this out, I think I now see how I want it to look.) First, the basics: if you have lxcpath=/var

[lxc-devel] lxc-destroy considered harmful

2013-09-04 Thread Thomas Moschny
Hi, in https://bugzilla.redhat.com/show_bug.cgi?id=1003136 , a Fedora LXC user reports a problem with lxc-destroy removing parts of his host file system. He's using 0.8.0, and the obvious advice for him is to try with 0.9.0 (which I am currently building packages of), but that said, the problem i

Re: [lxc-devel] [RFC 1/1] snapshots in api: define lxcapi_snapshot

2013-09-04 Thread Stéphane Graber
On Wed, Sep 04, 2013 at 11:05:02AM -0500, Serge Hallyn wrote: > Hi, > > before I go on with the snapshots-in-api patchset, I wanted to floar > this and ask a few questions, as I'm having a hard time deciding how > we want to talk over the API. > > (Though as I've been typing this out, I think I n