Re: fsync for only part of a file

wrstuden-DZEk9q7Sfju/3pe1ocb+swC/[email protected] Sun, 14 Sep 2003 21:14:16 -0700 (PDT)
Newsgroups gmane.os.bsd.api.general
Message-ID <Pine.NEB.4.53.0309142110470.951@neverwinter>
On Sat, 13 Sep 2003, Alan Barrett wrote:

> On Fri, 12 Sep 2003, wrstuden-DZEk9q7Sfju/3pe1ocb+swC/[email protected] wrote:
> > I'd like to add a version of fsync(2) which only synchronizes part of the
> > on disk and in-core data of a file. I am soliciting input on the name of
> > this call, and the general format of the functionality.
>
> This looks more like a variant of fdatasync() than a variant of fsync().

I don't think so. I think fsync_range() is better than what I suggested,
but I fully expect that the metadata, at least what's needed to read the
sync'd range, would get flushed. i.e. my thought is against cutting the
fdatasync() corner. :-)

Take care,

Bill

---------------------------------------------------------------------
The BSD APIs Discussion Mailing List
To unsubscribe:
send "unsubscribe bsd-api-discuss" to majordomo-of7zbby7T3pWk0Htik3J/[email protected]