Sure, my comment was in response to hpp and what I wanted to say is that user land code has to take care of transactions as defined in relation databases and that fsync is the tool to use for this. A journaled file system only takes care that the file system stays in a consistent state so no expensive fsck is needed with possible loss of data. Open write files may lose some of the last writen data if no fsync was performed. To keep the file system consistency barriers are used to guarantee a certain order of the writes. This limited guarantee allows file system to be faster the relational databases. greets, Staf.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds