Anand Avati <[email protected]> wrote:

> So my guess would be to inspect how direct_io_mode works in those FUSE
> implementations first. It is unlikely to be any other issue.

Indeed this is the problem: the kernel open and close the file without
sending any read request. 

But there is something I don't get withthe fix: 
- the code forces direct IO if (state->flags & O_ACCMODE) != O_RDONLY),
but here the file is open read/only, hence I would expect fuse xlator to
do nothing special
- using direct IO is the kernel's decision, reflecting the flags used by
calling process on open(2). How can the fuse xlator convince the kernel
to enable it?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
[email protected]
_______________________________________________
Gluster-devel mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-devel

Reply via email to