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

Rainer Gerhards rgerhards at hq.adiscon.com
Mon Jun 8 18:31:28 CEST 2009


> my search has not brought up many good hints. So what I currently plan to
do
> is an open(dirname, O_RDWR) on the directory and then do an fsync on it
> later.

... which does not work, because I receive EISDIR ;)

No I do an O_RDONLY, which works and then even fsync() on it works as well.
So this is what I will now be doing, but with a somewhat bad feeling...

Rainer



More information about the rsyslog mailing list