Alfred Perlstein wrote:
>
> I asked this question because of a problem that Postgresql has,
> basically multiple processes will be updating a file, they may do
> scattered IO to multiple offsets into the file, at the end of a
> transaction they want to sync the data... fsync(). ow. This causes
> buffers dirtied from multiple processes to be pushed to disk where
> they really only want thier own. The order doesn't really matter,
> just that all of the IO is on stable storage.
So, what you're looking for is something like writev, only having
the vector entries consist of (fd, pos, nbytes) triples? And
perhaps a sync vs. async flag on the call?
--
"Where am I, and what am I doing in this handbasket?"
Wes Peters Softweyr LLC
[EMAIL PROTECTED] http://softweyr.com/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message