From: Ian Jackson Subject: Re: [PATCH 1/5] change the name of the qemu save file at restore time Date: Thu, 20 Jan 2011 15:12:53 +0000 Message-ID: <19768.20725.82343.716610@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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: Stefano Stabellini Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("[Xen-devel] [PATCH 1/5] change the name of the qemu save file at restore time"): > Change the name of the qemu save file to qemu-resume at restore time so > that it doesn't collide with the name of the next save file. ... > - sprintf(path, "/var/lib/xen/qemu-save.%u", dom); > + sprintf(path, "/var/lib/xen/qemu-resume.%u", dom); ... > - "/var/lib/xen/qemu-save.%d", domid); > + RESTOREFILE".%d", domid); ... > +#define SAVEFILE "/var/lib/xen/qemu-save" > +#define RESTOREFILE "/var/lib/xen/qemu-resume" Uh, why is the latter not in libxc so that libxc can use it too ? > - args = args + ([ "-loadvm", "/var/lib/xen/qemu-save.%d" % > + args = args + ([ "-loadvm", "/var/lib/xen/qemu-resume.%d" % At least this has some kind of excuse. It's probably too painful to do anything else but keep the 2nd hardcoded value (and anyway this is in xend). Ian.