On Wed, Jul 10, 2019 at 07:02:08PM +0200, Michal Privoznik wrote:
On 7/10/19 5:47 PM, Daniel P. Berrangé wrote:
> When we allow multiple instances of the driver for the same user
> account, using a separate root directory, we need to ensure mutual
> exclusion. Use a pidfile to guarantee this.
>
> In privileged libvirtd this ends up locking
>
> /var/run/libvirt/nodedev/driver.pid
>
> In unprivileged libvirtd this ends up locking
>
> /run/user/$UID/libvirt/nodedev/run/driver.pid
>
> NB, the latter can vary depending on $XDG_RUNTIME_DIR
>
> Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
> ---
> src/conf/virnodedeviceobj.h | 5 +++++
> src/node_device/node_device_hal.c | 31 +++++++++++++++++++++++++++++
> src/node_device/node_device_udev.c | 32 ++++++++++++++++++++++++++++++
> 3 files changed, 68 insertions(+)
Side note, isn't it time to finally kill hal backend? Is somebody still
using it?
We were wanting Roman's confirmation that its no longer desired
for BSD.
https://www.redhat.com/archives/libvir-list/2019-May/msg00207.html
Regards,
Daniel
--
|:
https://berrange.com -o-
https://www.flickr.com/photos/dberrange :|
|:
https://libvirt.org -o-
https://fstop138.berrange.com :|
|:
https://entangle-photo.org -o-
https://www.instagram.com/dberrange :|