--On 22 August 2013 11:57:56 -0600 Eric Blake <ebl...@redhat.com> wrote:

# define O_DIRECT 0

so that the rest of the code can just blindly use open(...,|O_DIRECT)
(provided, of course, that not having O_DIRECT semantics is not
fatal...).  If that is done, then this #ifdef will always be true...

I think this is undesirable as the result of opening without O_DIRECT
when you really wanted O_DIRECT could be subtle data corruption due
to unexpected caching. Is an error not more appropriate here than
proceeding regardless?

--
Alex Bligh

Reply via email to