From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpLND-0001i2-Vj for qemu-devel@nongnu.org; Fri, 05 Aug 2011 10:27:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QpLNC-0001UP-Tp for qemu-devel@nongnu.org; Fri, 05 Aug 2011 10:27:39 -0400 Received: from verein.lst.de ([213.95.11.211]:52277 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QpLNC-0001UA-PI for qemu-devel@nongnu.org; Fri, 05 Aug 2011 10:27:38 -0400 Date: Fri, 5 Aug 2011 16:27:37 +0200 From: Christoph Hellwig Message-ID: <20110805142737.GA17323@lst.de> References: <4E3BB203.5060703@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Safely reopening image files by stashing fds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , Anthony Liguori , qemu-devel , Supriya Kannery On Fri, Aug 05, 2011 at 10:27:00AM +0100, Stefan Hajnoczi wrote: > > Why not do the latter unconditionally? > > Because you cannot change O_DIRECT on an open fd :(. This is why > we're going through this pain. You can. What you can't right now is O_SYNC, but we're going to change that.