From: Ian Jackson Subject: Re: Last call for forgotten tools patches for Xen 4.1 Date: Thu, 13 Jan 2011 11:43:31 +0000 Message-ID: <19758.58723.681181.302589@mariner.uk.xensource.com> References: <19750.386.258317.29710@mariner.uk.xensource.com> <4D2E3417.1020208@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D2E3417.1020208@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jim Fehlig Cc: Chun Yan Liu , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Jim Fehlig writes ("Re: [Xen-devel] Last call for forgotten tools patches for Xen 4.1"): > Sorry for the delay, but I just noticed this tools patch submitted by > Chun Yan back in November > > http://lists.xensource.com/archives/html/xen-devel/2010-11/msg01559.html Thanks. I replied to that but there was no updated patch. Now that I look at the patch again I see some other problems: * It closes the fd onto the file after locking it with flock (!) * On success it unlinks the lock file after locking it (!!) * The error return value is wrong (or perhaps it was wrong before). It is evident that this patch cannot have been properly tested since it won't actually provide mutual exclusion in its current form. I think we should look at this again after the 4.1 release. Ian.