Re: [libvirt] [PATCH v3 14/28] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-09-04 Thread John Ferlan
On 09/03/2018 11:13 AM, Michal Privoznik wrote: > On 08/30/2018 11:47 PM, John Ferlan wrote: >> >> >> On 08/27/2018 04:08 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

Re: [libvirt] [PATCH v3 14/28] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-09-03 Thread Michal Privoznik
On 08/30/2018 11:47 PM, John Ferlan wrote: > > > On 08/27/2018 04:08 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 v3 14/28] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-08-30 Thread John Ferlan
On 08/27/2018 04:08 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 v3 14/28] lock_daemon_dispatch: Check for ownerPid rather than ownerId

2018-08-27 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