[Mono-dev] Cross-platform fsync()

Alan McGovern alan.mcgovern at gmail.com
Wed Jan 10 18:09:19 EST 2007


> > Have you tried FileStream.Flush()? ;)
>
> Flush() intentionally doesn't call fsync nor FlushFileBuffers.


Well, the original reason cited for a cross platform fsync() call was to
perform a flush to disk operation on a filestream. I believe that's
*exactly* what FileStream.Flush() is for. So unless there's a different
reason that he needs fsync(), what's wrong with calling FileStream.Flush()?

Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070110/90161021/attachment.html 


More information about the Mono-devel-list mailing list