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.
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
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
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
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