Re: [libvirt] [PATCH] Fix handling of disk backing stores with cgroups

2010-05-12 Thread Eric Blake
On 05/07/2010 09:24 AM, Daniel P. Berrange wrote: > The cgroups ACL code was only allowing the primary disk image. > It is possible to chain images together, so we need to search > for backing stores and add them to the ACL too. Since the ACL > only handles block devices, we ignore the EINVAL we ge

[libvirt] [PATCH] Fix handling of disk backing stores with cgroups

2010-05-07 Thread Daniel P. Berrange
The cgroups ACL code was only allowing the primary disk image. It is possible to chain images together, so we need to search for backing stores and add them to the ACL too. Since the ACL only handles block devices, we ignore the EINVAL we get from plain files. In addition it was missing code to tea

Re: [libvirt] [PATCH] Fix handling of disk backing stores with cgroups

2010-04-29 Thread Daniel P. Berrange
On Wed, Apr 28, 2010 at 11:03:42AM -0600, Eric Blake wrote: > On 04/28/2010 09:27 AM, Daniel P. Berrange wrote: > > +memset(&meta, 0, sizeof(meta)); > > + > > +ret = virStorageFileGetMetadata(path, &meta); > > + > > +if (path != vm->def->disks[i]->src

Re: [libvirt] [PATCH] Fix handling of disk backing stores with cgroups

2010-04-28 Thread Eric Blake
On 04/28/2010 09:27 AM, Daniel P. Berrange wrote: > +memset(&meta, 0, sizeof(meta)); > + > +ret = virStorageFileGetMetadata(path, &meta); > + > +if (path != vm->def->disks[i]->src) > +VIR_FREE(path); > +path = NULL;

[libvirt] [PATCH] Fix handling of disk backing stores with cgroups

2010-04-28 Thread Daniel P. Berrange
The cgroups ACL code was only allowing the primary disk image. It is possible to chain images together, so we need to search for backing stores and add them to the ACL too. Since the ACL only handles block devices, we ignore the EINVAL we get from plain files. * src/qemu/qemu_driver.c: Allow backi