Re: [libvirt] [PATCH 05/12] nodedev: acquire a pidfile in the driver root directory

2019-07-10 Thread Daniel P . Berrangé
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 thi

Re: [libvirt] [PATCH 05/12] nodedev: acquire a pidfile in the driver root directory

2019-07-10 Thread Michal Privoznik
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/

[libvirt] [PATCH 05/12] nodedev: acquire a pidfile in the driver root directory

2019-07-10 Thread Daniel P . Berrangé
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