From: Keir Fraser Subject: Re: Xenstore remove problem - causes bug #473 Date: Fri, 13 Jan 2006 14:11:53 +0000 Message-ID: References: <200601101101.24419.mfb@br.ibm.com> <3ec09f6b750c71903448a12317350d6f@cl.cam.ac.uk> <200601131028.35362.mfb@br.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200601131028.35362.mfb@br.ibm.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: Murillo Bernardes Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 13 Jan 2006, at 12:28, Murillo Bernardes wrote: > I think the idea is that any sub-node should be matched also, like: if > "backend/1/status" changed we have to call backend_changed to > "backend/1" > device, and that is ok. But with that code If we delete device > "backend/1" > all devices matching "backend/1*" are being deleted also. That can't be the logic. If '/backend/1/status' changed then we would not strncmp match on '/backend/1'. The opposite way round would match though. Perhaps that was the intent. Anyway, I can implement a fix that maintains the current semantics w.r.t. matching on subdirectories. -- Keir