From: Ian Jackson Subject: Re: [PATCH 02/15] libxl: domain save: rename variables etc. Date: Thu, 31 May 2012 11:02:45 +0100 Message-ID: <20423.16837.362566.14381@mariner.uk.xensource.com> References: <1338394606-22693-1-git-send-email-ian.jackson@eu.citrix.com> <1338394606-22693-3-git-send-email-ian.jackson@eu.citrix.com> <1338399158.14877.21.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1338399158.14877.21.camel@dagon.hellion.org.uk> 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 Campbell Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 02/15] libxl: domain save: rename variables etc."): > > > @@ -921,71 +913,72 @@ int libxl__domain_suspend_common(libxl__gc *gc, uint32_t domid, int fd, ... > > + xcflags = (live) ? XCFLAGS_LIVE : 0 > > | (debug) ? XCFLAGS_DEBUG : 0 > > | (hvm) ? XCFLAGS_HVM : 0; ... > > + dss->xcflags = xcflags; ... > > + xcflags |= XCFLAGS_CHECKPOINT_COMPRESS; > > You now do this after the "dss->xcflags = xcflags" (since you moved that > block up), won't that mean you loose it? Yes. > (xcflags gets used again below in the call to xc_domain_save, but I > guess that'll go away during asyncification). I should have abolished the local variable entirely. Given that I'm renaming the variable I might as well change all the references to use dss->xcflags which eliminates the possibility to make this kind of mistake. So I will do that. Ian.