Re: [libvirt] [PATCH v4 12/23] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-09-18 Thread Michal Privoznik
On 09/17/2018 08:40 PM, John Ferlan wrote: > > > On 09/10/2018 05:36 AM, Michal Privoznik wrote: >> At the beginning of each dispatch function we check if owner >> attributes were registered (these consist of ID, UUID, PID and >> name). The check then consists of checking if ID is not zero. >> Th

Re: [libvirt] [PATCH v4 12/23] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-09-17 Thread John Ferlan
On 09/10/2018 05:36 AM, Michal Privoznik wrote: > At the beginning of each dispatch function we check if owner > attributes were registered (these consist of ID, UUID, PID and > name). The check then consists of checking if ID is not zero. > This is not going to work with > VIR_LOCK_MANAGER_OBJE

[libvirt] [PATCH v4 12/23] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-09-10 Thread Michal Privoznik
At the beginning of each dispatch function we check if owner attributes were registered (these consist of ID, UUID, PID and name). The check then consists of checking if ID is not zero. This is not going to work with VIR_LOCK_MANAGER_OBJECT_TYPE_DAEMON which doesn't set ID. Switch to setting PID wh