[lxc-devel] [PATCH 1/2] allow lxcapi_get_cgroup_item() on lxc-execute containers
Stéphane Graber
stgraber at ubuntu.com
Mon Nov 4 23:06:07 UTC 2013
On Mon, Nov 04, 2013 at 05:35:15PM -0500, Dwight Engen wrote:
> Containers started with lxc-execute may not have a conf, but
> nothing in the implementation of lxcapi_get_cgroup_item()
> actually needs/uses it, and it can be useful to get items out
> of the containers' cgroup items.
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
> ---
> src/lxc/lxccontainer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
> index ef828dc..89b45ed 100644
> --- a/src/lxc/lxccontainer.c
> +++ b/src/lxc/lxccontainer.c
> @@ -1977,7 +1977,7 @@ static int lxcapi_get_cgroup_item(struct lxc_container *c, const char *subsys, c
> {
> int ret;
>
> - if (!c || !c->lxc_conf)
> + if (!c)
> return -1;
>
> if (is_stopped(c))
> --
> 1.8.3.1
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20131104/3b923641/attachment.pgp>
More information about the lxc-devel
mailing list