From: Keir Fraser Subject: Re: Error in XendCheckpoint: failed to flush file Date: Wed, 28 Feb 2007 18:20:15 +0000 Message-ID: References: <342BAC0A5467384983B586A6B0B3767104DC3923@EXNA.corp.stratus.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <342BAC0A5467384983B586A6B0B3767104DC3923@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" , Keir Fraser , Stefan Berger , xen-devel List-Id: xen-devel@lists.xenproject.org On 28/2/07 18:07, "Graham, Simon" wrote: > OK. Do you think it's worth checking the fd type with stat and only > doing the flush/fadvise if it's not a socket? My guess is probably not. I think fsync/fadvise/lseek are all well-defined to fail without trashing things if passed a socket. There's no reason to suspect that doing a stat() will be any quicker than just letting the fsync() or fadvise() fail. I've checked in some cleanups in this area as c/s 14176:d66dff0933. Hopefully it'll be in the public tree rsn, assuming I've fixed save/restore sufficently well! -- Keir