From: Ewan Mellor Subject: Re: XD_GET_DOMAIN_PATH from dom2 Date: Fri, 8 Dec 2006 21:25:25 +0000 Message-ID: <20061208212525.GA20820@leeni.uk.xensource.com> References: <13426df10612081256p766c106ap6113bfe0c9456cb0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <13426df10612081256p766c106ap6113bfe0c9456cb0@mail.gmail.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: ron minnich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Dec 08, 2006 at 01:56:55PM -0700, ron minnich wrote: > This is returning /local/domain/0 to domain 2. > > Is this something anyone has tried? I am wondering if I am hitting > something that was never tested. Do you mean XS_GET_DOMAIN_PATH, the Xenstored message? This takes a domid, so if you're getting /local/domain/0 out, then you almost certainly are putting 0 in. If you want to read /local/domain/N/something from domain N, then you can just do xs_read("something"), as each domain has an implicit prefix of /local/domain/N if they read using relative paths. Ewan.