From: Wei Liu Subject: Re: [PATCH v2 03/18] libxl: functions to lock / unlock domain data in libxl user data store Date: Wed, 3 Sep 2014 15:27:34 +0100 Message-ID: <20140903142734.GE16937@zion.uk.xensource.com> References: <1406744639-28782-1-git-send-email-wei.liu2@citrix.com> <1406744639-28782-4-git-send-email-wei.liu2@citrix.com> <1409088094.28009.53.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1409088094.28009.53.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, Aug 26, 2014 at 10:21:34PM +0100, Ian Campbell wrote: > On Wed, 2014-07-30 at 19:23 +0100, Wei Liu wrote: > > The term "domain data" means libxl's knowledge of a domain, which > > includes but not limit to domain configuration. A new "libxl-lock" entry > > "is not limited to" > > > Portability note: this lock utilises flock(2) so a proper implementation > > of flock(2) is required. > > I suppose Linux provides this, do you know about BSD? (IOW, how much of > a problem is this in reality) > Flock first appeared in 4.2BSD so I think by now the major BSDs we care about should already have proper implementation. Wei.