From: Ian Jackson Subject: Re: [PATCH] fix rename: xenstore not fully updated Date: Mon, 17 Nov 2014 15:45:01 +0000 Message-ID: <21610.6141.943750.141913@mariner.uk.xensource.com> References: <1416215987-21571-1-git-send-email-cyliu@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1416215987-21571-1-git-send-email-cyliu@suse.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chunyan Liu Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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. > + /* 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.