[libvirt] [PATCH] util: Remove empty resource partition created by libvirt
Daniel P. Berrange
berrange at redhat.com
Tue Aug 11 11:40:06 UTC 2015
On Tue, Aug 11, 2015 at 04:57:15PM +0530, Nikunj A Dadhania wrote:
> The default resource partition is created in the domain start path if it
> is not existing. Even when libvirtd is stopped after shutting down all
> domains, the resource partition still exists.
>
> The patch adds code to removes the default resource partition in the
> cgroup removal path of the domain. If the default resource partition is
> found to have no child cgroup, the default resource partition will be
> removed.
>
> Moreover, the code does not remove the user provided resource
> partitions.
>
> Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
I don't think we want to be doing this. In non-systemd hosts this will
be deleting the heirarchy that the sysadmin manually pre-created for
their VMs. In a systemd host it will also end up deleting slices that
were created by systemd.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list