答复: does Gluster support O_DIRECT ?

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

 



Thanks Deepak, one more question:

 

Can we export a FUSE mounted volume (on gluster client) to be a NAS backend
? 

thus the client can act as a NAS server with file distribution capability.

 

Bill

 

???: Deepak C Shetty [mailto:deepakcs at linux.vnet.ibm.com] 
????: Wednesday, March 14, 2012 11:44 PM
???: Bill Bao
??: gluster-users at gluster.org
??: Re: does Gluster support O_DIRECT ?

 

On 03/14/2012 07:29 AM, Bill Bao wrote: 

This might be a question asked before, but I just couldn?t effectively
search the whole archives,

So please bear me and kindly advise.

 

We have a 3rd party application (video streaming kind of) which uses
directIO (O_DIRECT).

On the server side, in the posix translator, we added the ?option o-direct
enable? 

On the client side, we mounted as ?mount -t glusterfs -o
direct-io-mode=enable server1:/test-volume /mnt/glusterfs?

 

But the application still fails with error (cannot create/open file with
O_DIRECT).

 

Then we trace to the fuse module in the kernel, which has following
checking:

 

int fuse_open_common(struct inode *inode, struct file *file, bool isdir)

{

        struct fuse_conn *fc = get_fuse_conn(inode);

        int err;

        /* VFS checks this, but only _after_ ->open() */

        if (file->f_flags & O_DIRECT)

                return -EINVAL;

        err = generic_file_open(inode, file);

 

looks like regardless what we configure on the gluster side, the FUSE still
rejects the O_DIRECT.

Could someone shed light ? we?re also trying to take out the O_DIRECT
checking in FUSE module,

to see what will happen, will report soon.

 

Bill Bao

 

O_DIRECT support for fuse was added recently. Check the fsdevel archives.



 

 

 

 

 
 
_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gluster.org/pipermail/gluster-users/attachments/20120315/9e9e24e2/attachment.htm>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux