From: Ian Campbell Subject: Re: [PATCH 1/3] libxl: add 2 consoles to stubdoms for save/restore Date: Tue, 18 Jan 2011 17:31:17 +0000 Message-ID: <1295371877.14981.1678.camel@zakaz.uk.xensource.com> References: <1295371563.14981.1671.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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 On Tue, 2011-01-18 at 17:29 +0000, Stefano Stabellini wrote: > On Tue, 18 Jan 2011, Ian Campbell wrote: > > On Tue, 2011-01-18 at 17:17 +0000, Stefano Stabellini wrote: > > > Rename the save file on resume so that it doesn't collide with the > > > name of the next save file. > > > > What is the underlying issue here? Why does it matter if a save uses the > > same filename as a previous resume? Or is the issue that you can > > accidentally resume an image twice? > > The issue is that the console backend is going to open both the resume > file and the next save file when it starts, so they cannot have the same > name. Makes sense. I think it is worth writing this in the checking comment. Ian.