Re: [PATCH v2 2/2] fuse: permit O_DIRECT flag in open()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 28, 2011 at 01:44:08PM +0530, Anand Avati wrote:
> FUSE already has a direct IO implementation (struct file_operations
> fuse_direct_io_file_operation) but is currently set as a file's f_ops
> only based on flags returned from the filesystem server (in the reply
> of an open() call). This patch just lets the filesystem server know a
> userspace application's intention to open a file with O_DIRECT and
> leaves it with the decision to pick direct IO mode on the file (just
> the way it already does before the patch.) There is already a
> framework for direct IO operations and this patch only bridges
> O_DIRECT flag with that framework. Do you still think this is entirely
> incorrect?

Your clearing of the O_DIRECT flag is.  The current handling of O_DIRECT
in the VFS is a bit nasty, but if you have an issue with that fix it up
properly instead of piling more hacks on top of it.

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux