Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 29390475E30 for ; Mon, 9 Sep 2002 20:28:20 -0400 (EDT) Received: from stine.vestdata.no (stine.vestdata.no [195.204.68.10]) by postgresql.org (Postfix) with ESMTP id 0D9BB475E04 for ; Mon, 9 Sep 2002 20:28:19 -0400 (EDT) Received: (from ragnark@localhost) by stine.vestdata.no (8.11.6/8.11.2) id g8A0SKn30939; Tue, 10 Sep 2002 02:28:20 +0200 Date: Tue, 10 Sep 2002 02:28:20 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Sean Chittenden Cc: pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020910022820.W24188@vestdata.no> References: <11753.1031590251@sss.pgh.pa.us> <20020909234304.GK26147@ninja1.internal> <20020910015207.U24188@vestdata.no> <20020910001127.GM26147@ninja1.internal> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020910001127.GM26147@ninja1.internal>; from sean@chittenden.org on Mon, Sep 09, 2002 at 05:11:27PM -0700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/99 X-Sequence-Number: 5638 On Mon, Sep 09, 2002 at 05:11:27PM -0700, Sean Chittenden wrote: > > No, fsync() is not a no-op on linux. > > Unless the filesystem is mounted with o_sync, I suppose - then > > everything is written at write() so fsync() is not needed. But > > generally, it does sync. > > Hrm, alright. From what I've figured out, about ~6wk ago fsync() was > added to linux to have it actually fsync()... mind you someone quickly > turned around and created a new patchset that ripped the functionality > out and added it to an extreme linux distro. ::shrug:: Linux > is out of control. -sc "6wk"? Linux has had fsync for as long as I can remember. Maybe you have it confused with fsync() over NFS? The NFSv2 implementation on linux used to have "async" flag for nfs as default - making it non NFS-compliant without reconfiguration. -- Ragnar Kjørstad Big Storage