From: Keir Fraser Subject: Re: XenStore Watch Behavior Date: Sun, 27 Aug 2006 15:57:06 +0100 Message-ID: References: <20060826203222.GA2835@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060826203222.GA2835@cs.ucsd.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John McCullough , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26/8/06 9:32 pm, "John McCullough" wrote: > What is the intended behavior of watches on the XenStore? Should > only one watch be allowed on a given sub-hierarchy? Should the most > specific watch be triggered alone? Should all watches be triggered? I believe it's all supposed to work in a very obvious and simple way: All watches registered on a prefix of the updated node's path should be fired. A single transaction can fire the same watch multiple times if that watch is on a common prefix of a number of nodes updated by that transaction (since each firing event specifies the full path of the modified node, so events can't really be merged). If you observe different behaviour from this then it is most likely a bug and we would love to receive patches! -- Keir