Re: [PATCH] Add parameter to wait for lock in file locking APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/17/2014 08:23 AM, Daniel P. Berrange wrote:
> On Mon, Mar 17, 2014 at 07:47:36PM +0530, Nehal J Wani wrote:
>> Our current pidfile acquire APis (virPidFileAcquire) simply return -1 upon
>> failure to acquire a lock. This patch adds a parameter 'bool waitForLock'
>> which instructs the APIs if we want to make it block and wait for the lock
>> or not.
>>
>> ---
>>  Based on Daniel's comments on:
>>  https://www.redhat.com/archives/libvir-list/2014-March/msg00841.html
>>
>>  daemon/libvirtd.c         |    2 +-
>>  src/locking/lock_daemon.c |    4 ++--
>>  src/util/virfile.c        |   14 +++++++++-----
>>  src/util/virfile.h        |    2 +-
>>  src/util/virlockspace.c   |    6 +++---
>>  src/util/virpidfile.c     |    6 ++++--
>>  src/util/virpidfile.h     |    2 ++
>>  7 files changed, 22 insertions(+), 14 deletions(-)
> 
> ACK

Pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]