Re: asynchronous fsync()

Alfred Perlstein <[email protected]> Tue, 7 Mar 2006 09:06:30 -0800
Newsgroups gmane.comp.lib.state-threads.devel
Message-ID <[email protected]>
* Mike Abbott <[email protected]> [060307 09:04] wrote:
> > Is there any way to make fsync() asynchronous
> 
> My first guess would be No, because ST requires non-blocking I/O and
> descriptors to disk files can't be made non-blocking.  But I'll talk
> with Gene about it.  You mentioned async I/O but that's its own can of
> worms.  I've never relied on SIGIO; let me know how it works for you :).
> 
> If I were faced with this I would do the typical ST thing and spawn a
> persistent helper process.

You're right, you'd need a helper process to do this.

fsync(2) can not be made async.

-- 
- Alfred Perlstein
- CTO Okcupid.com / FreeBSD Hacker / All that jazz -


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642