From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSoev-0005ap-3B for qemu-devel@nongnu.org; Tue, 22 Nov 2011 06:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSoeq-0006UX-W7 for qemu-devel@nongnu.org; Tue, 22 Nov 2011 06:37:05 -0500 Received: from verein.lst.de ([213.95.11.211]:52350 helo=newverein.lst.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSoeq-0006U9-Qn for qemu-devel@nongnu.org; Tue, 22 Nov 2011 06:37:00 -0500 Date: Tue, 22 Nov 2011 12:36:59 +0100 From: Christoph Hellwig Message-ID: <20111122113659.GA32371@lst.de> References: <20111111064707.15024.69847.sendpatchset@skannery.in.ibm.com> <20111111064833.15024.54047.sendpatchset@skannery.in.ibm.com> <4ECA447A.40500@in.ibm.com> <4ECB6F43.8060000@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [v9 Patch 6/6]Qemu: raw posix implementation of reopen functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Supriya Kannery , qemu-devel@nongnu.org, Luiz Capitulino , supriya kannery , Christoph Hellwig On Tue, Nov 22, 2011 at 11:32:42AM +0000, Stefan Hajnoczi wrote: > Are you sure POSIX guarantees that O_DIRECT can be changed with > F_SETFL? I didn't find any statement in the specification. It is > possible that this code compiles but does not actually work on > non-Linux OSes. Did you run tests? O_DIRECT is a non-posix extention, and semantics of it will differ greatly between the operating systems implementing it.