[rsyslog] ultra-reliable disk files fsync vs. fdatasync

Rainer Gerhards rgerhards at hq.adiscon.com
Mon Jun 8 17:33:00 CEST 2009


Hi all,

I am working on the ultra-reliable file writing capability. I have revisited
the doc and am considering fsync() vs. fdatasync(). From the man pages, it
looks like fdatasync() is sufficient if I just need to ensure that any data
written can also be read. The advantage of fdatasync() is that it is somewhat
faster as not all meta data is necessarily written.

I would appreciate if someone could comment on this issue.

Thanks,
Rainer



More information about the rsyslog mailing list