WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: blktap race against xenstore startup

To: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: blktap race against xenstore startup
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 02 Oct 2006 11:14:17 +0100
Cc: Andrew Warfield <andrew.warfield@xxxxxxxxxxxx>, Anthony Liguori <aliguori@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Julian Chesterfield <jac90@xxxxxxxxx>
Delivery-date: Mon, 02 Oct 2006 03:13:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1159781788.10528.14.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbmC4SUw098g1H+EduaNAAX8io7RQ==
Thread-topic: [Xen-devel] Re: blktap race against xenstore startup
User-agent: Microsoft-Entourage/11.2.5.060620
On 2/10/06 10:36, "Stephen C. Tweedie" <sct@xxxxxxxxxx> 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.

Actually now you mention it I'm not 100% certain that you can; I'd need to
double check that. I think it's something we should allow even if not
though. Or you could set the watch on / and filter. Not much happens until
/local/domain is set up so you won't get many (any?) false watch firings.

> 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.

It's the obvious way of doing it imo. Xenstore is an always-available
service, even if we decide to disaggregate domain0 in future (e.g., move
blktap daemon to a different VM). I guess it depends on your p.o.v. :-)

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>