Re: [libvirt] [PATCH v1 1/6] virlockspace: Introduce VIR_LOCK_SPACE_ACQUIRE_METADATA flag

2018-08-10 Thread Daniel P . Berrangé
On Thu, Aug 09, 2018 at 03:34:39PM +0200, Michal Privoznik wrote: > This flag is going to be used to alter default behaviour of the > lock. Firstly, it means we will lock different offset in the file > (offset 1 instead of 0). Secondly, it means the lock acquiring > will actually wait for the lock

[libvirt] [PATCH v1 1/6] virlockspace: Introduce VIR_LOCK_SPACE_ACQUIRE_METADATA flag

2018-08-09 Thread Michal Privoznik
This flag is going to be used to alter default behaviour of the lock. Firstly, it means we will lock different offset in the file (offset 1 instead of 0). Secondly, it means the lock acquiring will actually wait for the lock to be set (compared to default behaviour which is set or error out).