[lxc-devel] [PATCH] do not allocate lxc_snapshot array if NULL is passed into snapshot_list as a ret_snaps parameter.

2013-10-14 Thread S . Çağlar Onur
All the other (similar) API calls behaves this way, aka passing NULL returns the count. This patch both provides consistency to calling conventions and also may make binding's life little easier cause we need to call those function two times. First to get the length and then get the data itself.

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

2013-10-14 Thread Michael H. Warfield
On Wed, 2013-10-09 at 09:50 -0500, Serge Hallyn wrote: > > lxc-create -n Ubuntu-test -t ubuntu > > > > Bingo... > > > > /dev/mapper/fedora-root on /usr/lib64/lxc/rootfs type ext4 > > (rw,relatime,seclabel,data=ordered) > > > > Why is lxc-create even creating that mount? I don't see any reason

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

2013-10-14 Thread Michael H. Warfield
Hey Serge, Was out of town the last several days. Sorry about not getting back sooner. Just getting back to this now... Because my big server, Hydra, has a lot of running containers on it now, I switched testing over to another server, MtKing, that has no other containers on it so I had a clean

[lxc-devel] [lxc/lxc] a41f10: define list container api (v2)

2013-10-14 Thread GitHub
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: a41f104bfbd69e5f068e5ca312a2eb513d9e81b8 https://github.com/lxc/lxc/commit/a41f104bfbd69e5f068e5ca312a2eb513d9e81b8 Author: Serge Hallyn Date: 2013-10-14 (Mon, 14 Oct 2013) Changed paths: M .gitignore

Re: [lxc-devel] [PATCH] define list container api (v2)

2013-10-14 Thread Stéphane Graber
On Fri, Oct 11, 2013 at 10:44:39AM -0500, Serge Hallyn wrote: > Two new commands are defined: list_defined_containers() and > list_active_containers(). Both take an lxcpath (NULL means > use the default lxcpath) and return the number of containers > found. If a lxc_container ** is passed in, then