Barriers and journaling filesystems
Posted May 22, 2008 10:06 UTC (Thu) by
Fats (subscriber, #14882)
In reply to:
Barriers and journaling filesystems by hpp
Parent article:
Barriers and journaling filesystems
"Summary: filesystem implementors ought to talk to database implementors. I'm sure both groups
can teach each other a lot, but in this area databases are still quote a bit ahead of
ext3/ext4."
The purpose of a journal is not to be sure that everything is written to disk when you do a write. It's to be sure that the file system is always in a consistent state so you don't need a very expensive fsck and risk loosing other data then what was being written.
If you need to be sure that something is written to disk you have to use the fsync function in your code.
greets,
Staf.
(
Log in to post comments)