Re: True fsync() in Linux (on IDE)

From: Hans Reiser
Date: Fri Mar 19 2004 - 15:34:23 EST


Chris Mason wrote:


- It depends on type of write (if it changes mata data or not)
- Finally it depends on file system and even journal mount options



All of the above is correct.


Doesn't the above statement contradict the following?:

In 2.6 does fsync always insert a write barrier when the metadata
journaling option is set for reiserfs?



Yes, fsync is done in the 2.6 patches.

and I was imprecise, I should have asked, does fsync flush the disk cache regardless of what mount options are set or data/metadata touched in the 2.6 patches?


--
Hans

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/