Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 58F14475DA7 for ; Mon, 9 Sep 2002 20:33:21 -0400 (EDT) Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by postgresql.org (Postfix) with ESMTP id D9C94475CEE for ; Mon, 9 Sep 2002 20:33:20 -0400 (EDT) Received: by mail.tgd.net (Postfix, from userid 1001) id D920220F01; Mon, 9 Sep 2002 17:33:18 -0700 (PDT) Date: Mon, 9 Sep 2002 17:33:18 -0700 From: Sean Chittenden To: Ragnar Kj?rstad Cc: pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020910003318.GO26147@ninja1.internal> References: <11753.1031590251@sss.pgh.pa.us> <20020909234304.GK26147@ninja1.internal> <20020910015207.U24188@vestdata.no> <20020910001127.GM26147@ninja1.internal> <20020910022820.W24188@vestdata.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SqGHvGqRphKoTacN" Content-Disposition: inline In-Reply-To: <20020910022820.W24188@vestdata.no> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 6CEB 1B06 BFD3 70F6 95BE 7E4D 8E85 2E0A 5F5B 3ECB X-Web-Homepage: http://sean.chittenden.org/ X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/100 X-Sequence-Number: 5639 --SqGHvGqRphKoTacN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > > 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. > >=20 > > 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 >=20 > "6wk"? >=20 > Linux has had fsync for as long as I can remember.=20 >=20 > 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. The fsync() call has existed, but in the kernel it didn't actually do anything is what I've been told. -sc --=20 Sean Chittenden --SqGHvGqRphKoTacN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iD8DBQE9fT3OjoUuCl9bPssRAmZdAJ9MgKebbPl1oUhVraWRnzpcEWQABwCeJAJK Zh3ikpqA5g9xjEW9UR4yISY= =yBQR -----END PGP SIGNATURE----- --SqGHvGqRphKoTacN--