[PVFS2-users] open with O_DIRECT, and open large files

Alban Crequy alban.crequy at apinc.org
Wed Apr 20 11:10:18 EDT 2005


Hello,

I am using pvfs2 1.0.1 with linux 2.6.11.5 on x86_64.

Does PVFS2 support open(2) with O_DIRECT ? I get "ERROR: cannot open
/mnt/pvfs2/smallfile (Invalid argument)" with O_DIRECT and it works
without O_DIRECT.

My software use:
fd = open("/mnt/pvfs2/smallfile", O_RDWR|O_DIRECT);



I have also a problem with big file. I created a big file with dd:

# ls -hl /mnt/pvfs2/
-rw-r--r--  1 root root 4,0G avr 19 18:17 bigfile
-rw-r--r--  1 root root  10M avr 19 18:27 smallfile

When I open the big file I get "ERROR: cannot open /mnt/pvfs2/bigfile
(File too large)"

My software use:
fd = open("/mnt/pvfs2/bigfile", O_RDWR);

Does PVFS2 support large files?

Any hints?

-- 
Alban



More information about the PVFS2-users mailing list