Re: [PATCH 11/13] Convert LXC driver to use virCgroupNewMachine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/23/2013 09:21 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> Convert the LXC driver code to use the new atomic API
> for setup of cgroups
> 
> Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  src/lxc/lxc_cgroup.c     | 53 +++++++++++++++---------------------------------
>  src/lxc/lxc_controller.c |  2 +-
>  2 files changed, 17 insertions(+), 38 deletions(-)


> +    /*
> +     * XXX
> +     * We should pass the PID of the LXC init process
> +     * not ourselves, but this requires some more
> +     * refactoring. We should also pass the root dir
> +     */
> +    if (virCgroupNewMachine(def->name,
> +                            "lxc",
> +                            true,
> +                            def->uuid,
> +                            NULL,
> +                            getpid(),

The comment sounded a bit ominous about passing wrong information; but
as long as it's not permanently getting us into a setup where we can't
recover, but just represents an inefficiency, I don't think it hurts to
make incremental progress.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]