<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 12, 2014 at 9:58 AM, Emmanuel Dreyfus <span dir="ltr">&lt;<a href="mailto:manu@netbsd.org" target="_blank">manu@netbsd.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Aug 11, 2014 at 09:53:19PM -0700, Anand Avati wrote:<br>
&gt; If FUSE implements proper direct_io semantics (somewhat like how O_DIRECT<br>
&gt; flag is handled) and allows the mode to be enabled by the FS in open_cbk,<br>
&gt; then I guess such a special handling of 0-byte need not be necessary? At<br>
&gt; least it hasn&#39;t been necessary in Linux FUSE implementation.<br>
<br>
</div>I made a patch that lets meta.t pass on NetBSD. Unfortunately, the<br>
direct IO flag gets attached to the vnode and not to the file descriptor,<br>
which means it is not possible to have a fd with direct IO and another without.<br>
<br>
But perhaps it is just good enough.<br></blockquote><div><br></div><div>That may / may not work well in practice depending on the number of concurrent apps working on a file. But a good start nonetheless.</div><div><br></div>
<div><br></div></div></div></div>