From: Keir Fraser Subject: Re: Error in XendCheckpoint: failed to flush file Date: Wed, 28 Feb 2007 17:17:20 +0000 Message-ID: References: <342BAC0A5467384983B586A6B0B3767104BE106A@EXNA.corp.stratus.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <342BAC0A5467384983B586A6B0B3767104BE106A@EXNA.corp.stratus.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Graham, Simon" , Stefan Berger , xen-devel List-Id: xen-devel@lists.xenproject.org On 28/2/07 16:15, "Graham, Simon" wrote: > Note that I thought about plumbing the live flag through to > xc_linux_restore as is done with xc_linux_save but decided I didn't want > to change the API... therefore I changed xc_linux_restore to figure out > if the fd is a socket or not... hopefully this works on Solaris??? (just > testing now). Use of the live flag to gate the flush/sync calls is not a good idea. We can 'live save' to disc (checkpointing) and we can 'non-live migrate' via a socket. So the live flag is not really an indicator of what the file descriptor maps to (file vs. socket). Best to unconditionally try the flush/sync and ignore errors. -- Keir