Re: Proposal for "proper" durable fsync() and fdatasync()

Jeff Garzik
2008-02-26T16:44:04Z

Nick Piggin wrote:
> Anyway, the idea of making fsync/fdatasync etc. safe by default is
> a good idea IMO, and is a bad bug that we don't do that :(

Agreed... it's also disappointing that [unless I'm mistaken] you have
to hack each filesystem to support barriers.

It seems far easier to make sync_blkdev() Do The Right Thing, and
magically make all filesystems data-safe.

Jeff