Re: [libvirt] [PATCH 1/5] Introduce a more convenient virCgroupNewDetectMachine

2013-07-25 Thread Eric Blake
On 07/25/2013 12:11 PM, Daniel P. Berrange wrote: >>> >>> +/* >>> + * Returns 0 on success, -1 on fatal error, -2 on no valid cgroup >>> + */ >>> +int virCgroupNewDetectMachine(const char *name, >>> + >>> +if (!virCgroupIsValidMachineGroup(*group, name, drivername)) { >>> +virCgroup

Re: [libvirt] [PATCH 1/5] Introduce a more convenient virCgroupNewDetectMachine

2013-07-25 Thread Daniel P. Berrange
On Thu, Jul 25, 2013 at 11:37:12AM -0600, Eric Blake wrote: > On 07/25/2013 06:20 AM, Daniel P. Berrange wrote: > > From: "Daniel P. Berrange" > > > > Instead of requiring drivers to use a combination of calls > > to virCgroupNewDetect and virCgroupIsValidMachine, combine > > the two into virCgro

Re: [libvirt] [PATCH 1/5] Introduce a more convenient virCgroupNewDetectMachine

2013-07-25 Thread Eric Blake
On 07/25/2013 06:20 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Instead of requiring drivers to use a combination of calls > to virCgroupNewDetect and virCgroupIsValidMachine, combine > the two into virCgroupNewDetectMachine > > Signed-off-by: Daniel P. Berrange > --- > src/

[libvirt] [PATCH 1/5] Introduce a more convenient virCgroupNewDetectMachine

2013-07-25 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Instead of requiring drivers to use a combination of calls to virCgroupNewDetect and virCgroupIsValidMachine, combine the two into virCgroupNewDetectMachine Signed-off-by: Daniel P. Berrange --- src/libvirt_private.syms | 1 + src/lxc/lxc_process.c| 20 -