Subject: Re: fsync_range() system call
To: Klaus Klein <kleink@reziprozitaet.de>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 10/29/2003 20:56:39
--eNMatiwYGLtwo1cJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 25, 2003 at 03:53:30AM +0200, Klaus Klein wrote:
> On Saturday 25 October 2003 00:23, Bill Studenmund wrote:
> As a general observation, I think the FSYNC_DATAONLY flag name/value shou=
ld=20
> be recycled for FSYNC_DATASYNC semantics; the current FSYNC_DATAONLY=20
> semantics are too aggressive for its (and fdatasync(2)'s) own good.

So if I understand your suggestion, now, fsync_range() should:

For FDATASYNC (sync data and enough metadata to read the data), call=20
VOP_FSYNC with FSYNC_DATAONLY.

For FFILESYNC (sync data and all metadata), call VOP_FSYNC with FDATASYNC=
=20
| FSYNC_WAIT. Or just FSYNC_WAIT.

Correct?

Take care,

Bill

--eNMatiwYGLtwo1cJ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/oJoHWz+3JHUci9cRAhZaAJ4vHTvBoRldadD2hpLi9kODC8deugCdHzcQ
oyPR7nGdcqwPpCxbb/uUpi8=
=LuUe
-----END PGP SIGNATURE-----

--eNMatiwYGLtwo1cJ--