From: "Stephen C. Tweedie" Subject: Re: Re: blktap race against xenstore startup Date: Mon, 02 Oct 2006 10:36:28 +0100 Message-ID: <1159781788.10528.14.camel@sisko.scot.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Anthony Liguori , "xen-devel@lists.xensource.com" , Steven Rostedt , Andrew Warfield , Julian Chesterfield List-Id: xen-devel@lists.xenproject.org Hi, On Fri, 2006-09-29 at 07:54 +0100, Keir Fraser wrote: > > The problem is not that xenstored is dead: it's alive and running, it > > just hasn't had the /local/domain tree filled in, so it returns ENOENT. > > xenstored *is* ready, but that's not enough. > > Set a watch on /local/domain and wait for the directory to appear? Not a > beautiful approach, but better than spinning a few times? :-) OK, I didn't realise we could set watches on non-existant paths in the store, but it seems like that should work. I was wondering if there was a way to synchronise against xend itself, though: doing it through the store is a little ugly. But yes, it's probably better than looping. Cheers, Stephen