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

From: Chris Mason
Date: Fri Mar 19 2004 - 15:37:49 EST


On Fri, 2004-03-19 at 15:31, Hans Reiser wrote:
> 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?:
>
Sorry for the confusion, I thought he was asking about 2.4.x.

> >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?
>

-chris


-
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/