Re: [libvirt] [PATCH 06/18] Rename virCgroupMounted to virCgroupHasController & make it more robust

2013-04-08 Thread Ján Tomko
On 04/04/2013 03:40 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > 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 >

[libvirt] [PATCH 06/18] Rename virCgroupMounted to virCgroupHasController & make it more robust

2013-04-04 Thread Daniel P. Berrange
From: "Daniel P. Berrange" 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 th