[libvirt] [PATCH 06/18] Rename virCgroupMounted to virCgroupHasController & make it more robust
Ján Tomko
jtomko at redhat.com
Mon Apr 8 12:53:08 UTC 2013
On 04/04/2013 03:40 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The virCgroupMounted method is badly named, since a controller can be
> mounted, but disabled in the current object. Rename the method to be
> virCgroupHasController. Also make it tolerant to a NULL virCgroupPtr
> and out-of-range controller index, to avoid duplication of these
> checks in all callers
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/libvirt_private.syms | 2 +-
> src/lxc/lxc_driver.c | 12 +-----------
> src/lxc/lxc_process.c | 10 +++++-----
> src/qemu/qemu_cgroup.c | 14 +-------------
> src/util/vircgroup.c | 13 +++++++++----
> src/util/vircgroup.h | 2 +-
> 6 files changed, 18 insertions(+), 35 deletions(-)
>
ACK
Jan
More information about the libvir-list
mailing list