From: Ian Campbell Subject: Re: [PATCH] libxl: remove console 0 backend directory from xenstore on devices destroy Date: Mon, 4 Oct 2010 14:37:31 +0100 Message-ID: <1286199451.23155.2800.camel@zakaz.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-10-04 at 14:21 +0100, Ian Campbell wrote: > # HG changeset patch > # User Ian Campbell > # Date 1286198484 -3600 > # Node ID d59be7a8e1e3bc439bb01a0f89d43411210fedcb > # Parent 1cae52330eebbe448586c0a173945bc2bf8d631f > libxl: remove console 0 backend directory from xenstore on devices destroy > > The is (deliberately) no frontend directory for console 0 in > xenstore. Therefore to avoid leaking > /local/domain/0/backend/console/$domid/0 check explicitly for this > backend directory and remove. Thinking about this some more it might be preferable to write /local/domain/domid/console/{backend,backend-id} giving us a concrete pointer to the backend we wish to destroy, this would cope better with console backends in dom!=0 too. I'm assuming its not a mistake that the backend exists in the first place? Ian.