[libvirt] [PATCH 11/17] util: Introduce libvirt_udevhelper

Michal Sekletar msekleta at redhat.com
Thu Oct 27 13:37:59 UTC 2016


On Thu, Oct 27, 2016 at 2:48 PM, Daniel P. Berrange <berrange at redhat.com> wrote:

> We absolutely don't want to be delegating permissions setting/labelling
> to udev & waiting for it to complete asychronously in the background.
> That leads to two completely different approaches for labelling files
> vs block devices making debugging harder and the overall system more
> complex & error prone.

libvirtd would chown and relabel but it would also trigger change
event after it populates devices.udev. To make sure any change event
that was possibly running before won't change permissions back.
Waiting will be synchronous on libvirtd side. I admit it is a bit ugly
but I think there is no other way how to solve this problem.

Michal




More information about the libvir-list mailing list