Florian Weimer wrote:
* Andrew Morton:
I don't think it's a bug. Sure, O_DIRECT is synchronous, but that's
because it is, err, direct. Not because it provides extra data-integrity
guarantees. If you want those guarantees, use O_SYNC as well.
This needs to be prominently documented. Right now, it's far from clear
that you need both O_DIRECT and O_SYNC.
It's certainly not a requirement for NFS. O_DIRECT on NFS forces data
to the server, which always updates a file's metadata on each write,
including indirect blocks.
begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group
adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA
title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard