From: Ian Jackson Subject: Re: [PATCH v1 03/10] libxl: store a copy of vanilla domain configuration when creating domain Date: Mon, 28 Jul 2014 10:50:10 +0100 Message-ID: <21462.7378.340926.528721@mariner.uk.xensource.com> References: <1405002745-5034-1-git-send-email-wei.liu2@citrix.com> <1405002745-5034-4-git-send-email-wei.liu2@citrix.com> <21457.22014.75779.162154@mariner.uk.xensource.com> <20140725105300.GJ28444@zion.uk.xensource.com> <21458.28978.730284.366384@mariner.uk.xensource.com> <20140725154350.GM28444@zion.uk.xensource.com> <21458.36957.843517.433019@mariner.uk.xensource.com> <20140725173418.GP28444@zion.uk.xensource.com> <21458.41610.295039.9076@mariner.uk.xensource.com> <20140725194707.GA25727@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140725194707.GA25727@zion.uk.xensource.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: Wei Liu Cc: ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH v1 03/10] libxl: store a copy of vanilla domain configuration when creating domain"): > I actually looked at flock(2) this afternoon but deemed it is not as > portable as fcntl so I didn't propose it. flock on NFS file probably > won't work (I bet we won't have the chance to put user data store on NFS > though). And somee other UNIX systems might actually implement flock with > fcntl. The latter is more concerning. No-one will put /var/run/xen on NFS. Or at least, if they do, they deserve to keep all of the pieces. (fcntl sometimes doesn't work properly on NFS either.) And we only care about dom0 kernel operating systems. So I think we can discount the possibility that any of them are god-knows-what ancient thing that doesn't have a real flock. > If you don't think the above issues are critical I can try to replace > fcntl with flock. Yes, please. Ian.