From: "Chun Yan Liu" Subject: Re: [PATCH] fix rename: xenstore not fully updated Date: Mon, 17 Nov 2014 19:13:14 -0700 Message-ID: <546B1BBA020000660007AFAB@soto.provo.novell.com> References: <1416215987-21571-1-git-send-email-cyliu@suse.com> <21610.6141.943750.141913@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21610.6141.943750.141913@mariner.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 11/17/2014 at 11:45 PM, in message <21610.6141.943750.141913@mariner.uk.xensource.com>, Ian Jackson wrote: > Chunyan Liu writes ("[PATCH] fix rename: xenstore not fully updated"): > > Currently libxl__domain_rename only update /local/domain//name, > > still some places in xenstore are not updated, including: > > /vm//name and /local/domain/0/backend///.../domain. > > Thanks. > > ... > > + /* update /vm//name */ > > + vm_path = libxl__xs_read(gc, trans, libxl__sprintf(gc, "%s/vm", > dom_path)); > > This seems to be obtaining the uuid from xenstore. Can't we get it > from the hypervisor ? That avoids quite a bit of this path fiddling. Will update. Thanks. > > > + /* update backend /local/domain/0/backend///.../domain */ > > Um, what on earth creates that ? > > Worse, what reads it ? > > I think that putting this information in the backend directory is > entirely wrong. > > (Also, please use GCSPRINTF, libxl__xs_read_checked, etc., and keep > your lines to less than 75 characters or so.) > > Thanks, > Ian. > >