From owner-freebsd-fs@FreeBSD.ORG Fri Feb 6 21:32:58 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9C3A10656E0 for ; Fri, 6 Feb 2009 21:32:58 +0000 (UTC) (envelope-from admin@kedvenc.hu) Received: from site.hu (site.hu [212.92.23.185]) by mx1.freebsd.org (Postfix) with ESMTP id 77B068FC1E for ; Fri, 6 Feb 2009 21:32:57 +0000 (UTC) (envelope-from admin@kedvenc.hu) Received: from www-data by site.hu with local (Exim 4.63 #1 (Debian)) id 1LVYJj-0006po-Vh for ; Fri, 06 Feb 2009 22:32:56 +0100 Received: from 92-249-229-208.pool.digikabel.hu (92-249-229-208.pool.digikabel.hu [92.249.229.208]) by www.site.hu (Horde MIME library) with HTTP; Fri, 06 Feb 2009 22:32:55 +0100 Message-ID: <20090206223255.nx3wziczkwso0w4o@www.site.hu> X-Priority: 3 (Normal) Date: Fri, 06 Feb 2009 22:32:55 +0100 From: Joe7 To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Subject: Re: nfs delay causing broken files X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 21:32:59 -0000 So I tried, wrote a tenliner c script that copies the files ouF =3D open(argv[2], O_WRONLY | O_CREAT | O_DIRECT | O_SYNC) opening the target with that, but tested and the same problem occurs am I missing something obvious? Thanks for all your help, Joe Id=E9zet (Rick Macklem ): > > > On Fri, 6 Feb 2009, Joe7 wrote: > >> Okay, >> >> So although it's likely that kernel hack would do it, >> am I right that a wrapper script with open(...O_DIRECT) would do the job? >> >> Basicly i'm creating an file with imagemagick and wanna place that =20 >> on the nfs server. >> So I assume if I create the file locally and copy over using a =20 >> little script that uses open(.. O_DIRECT), it would just work? >> Application is PHP+imagemagick binary thus pretty high level =20 >> compared to this stuff, but please let me know if you agree! >> > Sounds like it might work. Good luck with it, rick